openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #12852
Re: How to let nova use localtime rather than UTC time?
On Wed, Jun 06, 2012, livemoon <mwjpiero@xxxxxxxxx> wrote:
> I found nova use "utcnow" to get time and write it to db.
> So the create_time of vm also show utc time rather than localtime.
You really don't want to do this. For instance, the database won't store
the timezone, so in places where there is daylight savings time,
timestamps can be ambiguous.
As a best practice, the database should store in UTC and then tools
should convert to a local timezone for convenience.
JE
Follow ups
References