Message-ID: <e7403960-2773-1279-ab8d-b13bb82311fa@comcast.net>
Date: 2020-04-25T00:46:00Z
From: David Winsemius
Subject: Timezone conversion on Ubuntu 20.04
In-Reply-To: <CABFfbXskOajsHbDX4SXkJuS3xC8H+boR=bcJw9vBWGdkn1nQhw@mail.gmail.com>
On 4/24/20 4:02 PM, Jeroen Ooms wrote:
> Hi all,
>
> I am testing R 4.0 and ran into an issue with timezones on Ubuntu
> Focal: converting a timestamp to another timezone results in NA:
>
> as.POSIXct(as.POSIXlt(Sys.time(), tz = "CET"), tz = "EST")
>
> This only happens on Ubuntu Focal, it seems to work fine on Ubuntu
> Bionic. I am the standard ubuntu docker image icw/ r-base from Dirk's
> ppa:edd/r-4.0 on both systems.
>
> Am I missing a system dependency for tzone data?
I don't really know but I do know that "EST" is often not a specific
valid value. It is used by both the USA and Australia. More valid
designation would probably be "America/New_York"
The vector of valid names is returned by:
OlsonNames(tzdir = NULL)
--
David.
>
> Jeroen
>
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian