[Rd] Will R 4.5.2 include time zone reconciliation in '[<-.POSIXlt'?

Suharto Anggono Suharto Anggono @uh@rto_@nggono @end|ng |rom y@hoo@com
Wed Oct 22 06:51:46 CEST 2025


 
========
On Sunday, 19 October 2025 at 05:50:06 pm GMT+7, Suharto Anggono Suharto Anggono <suharto_anggono using yahoo.com> wrote:


The change to '[<-.POSIXlt' to convert 'value' to the time zone of 'x', along with other accompanying changes, has been ported to R-4-5-branch with NEWS item not mentioning time zone. Has R Core been aware of the consequences I have stated in https://bugs.r-project.org/show_bug.cgi?id=18919#c9 and still determined to retain it, to be released in R 4.5.2?

To exclude time zone reconciliation while retaining other changes, just change

           value <- unCfillPOSIXlt(
                if(inherits(value, "POSIXlt") && identical(tz, attr(value, "tzone")))
                    value
                else as.POSIXlt(as.POSIXct(value), tz = tz[1L]))

to

           value <- unCfillPOSIXlt(as.POSIXlt(value))

in '[<-POSIXlt' and '[[<-.POSIXlt'.
========

Oh, with the change, variable 'tz' is not used. So,

 tz <- attr(x, "tzone")

before it can be removed.  
	[[alternative HTML version deleted]]



More information about the R-devel mailing list