Re: Timezone and date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Apr 4, 2017 at 9:22 PM, Jerry Geis <jerry.geis@xxxxxxxxx> wrote:

> When I do the date +%Z I get the timezone. Which currently is EDT.
>
> I am sending information to another system, that says EDT is not a valid
> timezone. I have no way to modify the other system.
>
> My question is - is there a way to get the non-day-lite savings time zone ?
> For example EST is valid - EDT is not.
>
> Just curious if there is an easy way already present to get a standard time
> zone.
>
> Thanks, - I know weird situation the other end not supported EDT.
>
> Jerry
>


Communication of time values should use UTC, not a specific time zone,
unless the remote side needs to know the time zone for a specific reason.

To get the time in a different zone, use the TZ environment var:
    TZ=UTC date


~ Brian Mathis
@orev
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux