[Rd] UTC time zone on Windows

Kirill Müller kirill.mueller at ivt.baug.ethz.ch
Wed Aug 13 16:24:41 CEST 2014


I have just replicated this in a fresh Windows 8.1 machine (x86), in 
both R 3.1.1 and R-devel. I have attached a screenshot.


Cheers

Kirill



On 08/07/2014 02:15 AM, Kirill Müller wrote:
> Hi
>
>
> I'm having trouble running R CMD build and check with UTC time zone 
> setting in Windows Server 2012. I can't seem to get rid of the 
> following warning:
>
>   unable to identify current timezone 'C':
> please set environment variable 'TZ'
>
> However, setting TZ to either "Europe/London" or "GMT Standard Time" 
> didn't help.
>
> It seems to me that the warning originates in registryTZ.c 
> (https://github.com/wch/r-source/blob/776708efe6003e36f02587ad47b2eaaaa19e2f69/src/extra/tzone/registryTZ.c#L363). 
> I have therefore looked at 
> HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation, to learn 
> that TimeZoneKeyName is set to "UTC". This time zone is not defined in 
> TZtable, but is present in this machine's 
> HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. (Also, 
> the text of the warning permits the possibility that only the first 
> character of the time zone is used for the warning message -- in the 
> code, a const wchar_t* is used for a %s placeholder.)
>
> Below is a link to the log of such a failing run. The first 124 lines 
> are registry dumps, output of R CMD * is near the end of the log at 
> lines 212 and 224.
>
> https://ci.appveyor.com/project/krlmlr/r-appveyor/build/1.0.36
>
> This happens with R 3.1.1 and R-devel r66309.
>
> Is there a workaround I have missed, short of updating TZtable? How 
> can I help updating TZtable? Thanks!
>
>
> Cheers
>
> Kirill
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2014-08-13 16:23:16.png
Type: image/png
Size: 143198 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20140813/1e451beb/attachment.png>


More information about the R-devel mailing list