if __name__ == '__main__':
+ if 'TZ' not in os.environ:
+ os.environ[TZ] = ":/etc/localtime"
main(sys.argv)
python is doing the additional stats' I suspect with the intent of being more dynamic / allowing an update to /etc/TZ to affect subsequent calls to datetime() .
based on the findings above/my understanding, this should be equivalent to your suggested change:
--- a/cloudinit/ cmd/main. py cmd/main. py args=None) :
+++ b/cloudinit/
@@ -694,4 +694,6 @@ def main(sysv_
if __name__ == '__main__':
+ if 'TZ' not in os.environ:
+ os.environ[TZ] = ":/etc/localtime"
main(sys.argv)
python is doing the additional stats' I suspect with the intent of being more dynamic / allowing an update to /etc/TZ to affect subsequent calls to datetime() .