Stored timestamps should always be in UTC, however efforts should be made to support local timezones as a user-configurable option. Horizon will be working towards this goal since Django has good timezone support, I'd encourage other projects to keep this on their radar as well.
- Gabriel > -----Original Message----- > From: openstack-bounces+gabriel.hurley=nebula....@lists.launchpad.net > [mailto:openstack- > bounces+gabriel.hurley=nebula....@lists.launchpad.net] On Behalf Of > Johannes Erdfelt > Sent: Wednesday, June 06, 2012 8:35 AM > To: openstack@lists.launchpad.net > Subject: Re: [Openstack] How to let nova use localtime rather than UTC > time? > > On Wed, Jun 06, 2012, livemoon <mwjpi...@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 > > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp