From 70c78eade0d2514e597512bb227109da3b7444de Mon Sep 17 00:00:00 2001 From: Eugene Archibald Date: Fri, 18 Oct 2013 20:32:35 -0700 Subject: [PATCH] Added ['date_time']['tz_offset'] using %z to get the time offset rather than time zone. --- system/setup | 1 + 1 file changed, 1 insertion(+) diff --git a/system/setup b/system/setup index 2898ce67653..5be2068b330 100755 --- a/system/setup +++ b/system/setup @@ -452,6 +452,7 @@ class Facts(object): self.facts['date_time']['iso8601_micro'] = now.utcnow().strftime("%Y-%m-%dT%H:%M:%S.%fZ") self.facts['date_time']['iso8601'] = now.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ") self.facts['date_time']['tz'] = time.strftime("%Z") + self.facts['date_time']['tz_offset'] = time.strftime("%z") # User