openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #12878
Re: How to let nova use localtime rather than UTC time?
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.com@xxxxxxxxxxxxxxxxxxx
> [mailto:openstack-
> bounces+gabriel.hurley=nebula.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> Johannes Erdfelt
> Sent: Wednesday, June 06, 2012 8:35 AM
> To: openstack@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Openstack] 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
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
Follow ups
References