========
On Sunday, 19 October 2025 at 05:50:06 pm GMT+7, Suharto Anggono Suharto 
Anggono <[email protected]> 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]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to