From 145c0b8be194ed40ea7fc4a418fdb4bd602edfb5 Mon Sep 17 00:00:00 2001 From: Eugene Archibald Date: Fri, 18 Oct 2013 20:32:35 -0700 Subject: [PATCH 1/2] 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 From 30eb5c7342cd8edeef7bfdb6ba3458d023524074 Mon Sep 17 00:00:00 2001 From: Eugene Archibald Date: Sat, 19 Oct 2013 17:04:37 -0700 Subject: [PATCH 2/2] Fixed (broken) tab to (correct) spaces for indentation --- library/system/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/system/setup b/library/system/setup index 5be2068b33..4ff3b02329 100755 --- a/library/system/setup +++ b/library/system/setup @@ -452,7 +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") + self.facts['date_time']['tz_offset'] = time.strftime("%z") # User