Dave Merrill
03/11/2024, 6:52 PMRodney
03/11/2024, 7:16 PMDave Merrill
03/11/2024, 7:19 PMRodney
03/11/2024, 7:25 PMRodney
03/11/2024, 7:40 PMRodney
03/11/2024, 7:41 PMDave Merrill
03/11/2024, 7:45 PMRodney
03/11/2024, 7:45 PMsetTimeZone("UTC") at the top of your script.Rodney
03/11/2024, 7:49 PMwriteDump(getTimeZone()) to view the CF time zone.Dave Merrill
03/11/2024, 7:58 PMDave Merrill
03/11/2024, 8:05 PMDave Merrill
03/11/2024, 8:07 PMRodney
03/11/2024, 8:07 PMRodney
03/11/2024, 8:08 PMRodney
03/11/2024, 8:09 PMDave Merrill
03/11/2024, 8:11 PMAdam Cameron
Dave Merrill
03/11/2024, 8:26 PMDave Merrill
03/11/2024, 8:28 PMRodney
03/11/2024, 8:28 PMDave Merrill
03/11/2024, 8:29 PMAdam Cameron
Dave Merrill
03/11/2024, 8:31 PMAdam Cameron
Adam Cameron
Adam Cameron
Adam Cameron
Dave Merrill
03/11/2024, 8:35 PMAdam Cameron
Adam Cameron
Dave Merrill
03/11/2024, 8:41 PMThe is no 2am 0n 2024-03-10
Hah, funny that that's a value in question.
However, with the setTimeZone() call in place, isDate("3/10/2024 2:00AM") returns true, and without it, various others crash too, so not the issue.Dave Merrill
03/11/2024, 8:43 PMAdam Cameron
Dave Merrill
03/11/2024, 9:00 PMAdam Cameron
Or do I need to change the time on the server machine itself?Yup
Adam Cameron
isDate function in there which has a try catch around the isDate call, returning false in the catch.
And always use that.Adam Cameron
isDate polyfill, link to the ticket in the bug tracker so ppl after you know why you've done it.Adam Cameron
> Or do I need to change the time on the server machine itself?
YupActually there's probs a jvm arg you can use. I dunno what it is and can't be arsed googling, but worth having a look
seancorfield
-Duser.timezone=UTC in case you haven't figured it out @Dave Merrill
At work, all our servers are configured to UTC at the O/S level.
In addition, we specify that JVM property everywhere, even in dev (so tests have a consistent TZ to work in). We also explicitly configure our database to be UTC (everywhere, even in dev). And I believe we also have something in the DB connection string that ensures the server TZ is used consistently for all DB clients.gavinbaumanis
03/12/2024, 1:26 AMDave Merrill
03/12/2024, 1:10 PMAdam Cameron
gavinbaumanis
03/12/2024, 11:24 PMDave Merrill
03/13/2024, 1:47 PM