Julien Danjou 787b6e3e50 timeutils: fix newer/older comparison with TZ aware datetime
Blindly replacing the timezone information from a timestamp does not
make it correctly UTC. It just strips information away, and therefore
does not make any valid comparison.

This fixes the comparison function by normalizing the timestamps to UTC
before doing any comparison.

Change-Id: I3a1b1eae497200ca951ccb003dbcc75fb75380fa
2015-06-03 17:21:40 +02:00
2015-05-05 19:39:52 +00:00
2014-06-18 23:12:10 -04:00
2015-04-07 18:19:37 -07:00
2015-06-01 12:57:28 -04:00
2014-08-30 08:35:42 +00:00

oslo.utils

Latest Version

Downloads

The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.

Description
OpenStack library utils
Readme 8 MiB
Languages
Python 100%