From spinuvit at gmail.com  Fri Aug 19 11:39:31 2016
From: spinuvit at gmail.com (Vitalie Spinu)
Date: Fri, 19 Aug 2016 11:39:31 +0200
Subject: [Rd] POSIX <> character comparison is locale dependent
Message-ID: <87a8g9umgc.fsf@gmail.com>


Hi Devs,

In my UTC+1 timezone the following code returns TRUE

     t <- as.POSIXct("1999-12-31 23:50:00", tz = "UTC")
     t > "2000-01-01"
     ## TRUE

For a person in US it would return FALSE.

The reason for this is that timezone of the "t" object is ignored in
base:::Ops.POSIXt.

Could this please be fixed? I am attaching a simple patch in case there is
interest.

Thanks,

 Vitalie



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-diff
Size: 804 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20160819/16c566e3/attachment.bin>


[Rd] POSIX <> character comparison is locale dependent
Vitalie Spinu