Skip to content
Back to formatted view

Raw Message

Message-ID: <20101919.Xy7VfupATn@ryz>
Date: 2020-04-25T08:33:49Z
From: Johannes Ranke
Subject: Timezone conversion on Ubuntu 20.04
In-Reply-To: <CABFfbXskOajsHbDX4SXkJuS3xC8H+boR=bcJw9vBWGdkn1nQhw@mail.gmail.com>

Am Samstag, 25. April 2020, 01:02:38 CEST schrieb Jeroen Ooms:
> 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.

works fine using the backported R 4.0.0 on Debian buster:

R> as.POSIXct(as.POSIXlt(Sys.time(), tz = "CET"), tz = "EST")
[1] "2020-04-25 10:05:29 EST"

Johannes

> 
> Am I missing a system dependency for tzone data?
> 
> Jeroen
> 
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian