From 145c0b8be194ed40ea7fc4a418fdb4bd602edfb5 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. --- library/system/setup | 1 + 1 file changed, 1 insertion(+) diff --git a/library/system/setup b/library/system/setup index 2898ce6765..5be2068b33 100755 --- a/library/system/setup +++ b/library/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