[Openstack] How to let nova use localtime rather than UTC time?

Johannes Erdfelt johannes at erdfelt.com
Wed Jun 6 15:35:14 UTC 2012


On Wed, Jun 06, 2012, livemoon <mwjpiero at gmail.com> 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





More information about the Openstack mailing list