← Back to team overview

cloud-init-dev team mailing list archive

Re: [Merge] ~raharper/cloud-init:systemd_export_tz into cloud-init:master

 

On Mon, Nov 21, 2016 at 10:32 AM, Scott Moser <smoser@xxxxxxxxxx> wrote:

> based on the findings above/my understanding, this should be equivalent to
> your suggested change:
>
> --- a/cloudinit/cmd/main.py
> +++ b/cloudinit/cmd/main.py
> @@ -694,4 +694,6 @@ def main(sysv_args=None):
>
>
>  if __name__ == '__main__':
> +    if 'TZ' not in os.environ:
> +        os.environ[TZ] = ":/etc/localtime"
>      main(sys.argv)
>
>
>
Yes, I think that's reasonable, and makes it portable across init systems.


>
> 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() .
>
>
> --
> https://code.launchpad.net/~raharper/cloud-init/+git/
> cloud-init/+merge/307722
> You are the owner of ~raharper/cloud-init:systemd_export_tz.
>

-- 
https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/307722
Your team cloud init development team is requested to review the proposed merge of ~raharper/cloud-init:systemd_export_tz into cloud-init:master.


References