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: [email protected]
> [mailto:openstack-
> [email protected]] On Behalf Of
> Johannes Erdfelt
> Sent: Wednesday, June 06, 2012 8:35 AM
> To: [email protected]
> Subject: Re: [Openstack] How to let nova use localtime rather than UTC
> time?
>
> On Wed, Jun 06, 2012, livemoon <[email protected]> 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 : [email protected]
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp