From 70c78eade0d2514e597512bb227109da3b7444de 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. --- 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 From 6599feac47f4db23cf5f7ba6251eeab2493f06a0 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 --- system/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/setup b/system/setup index 5be2068b330..4ff3b023297 100755 --- a/system/setup +++ b/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