i have some trouble in my timezone <https://trycf....
# lucee
g
i have some trouble in my timezone https://trycf.com/gist/580f9d040b3833762718e41ed8f8a657/lucee5?theme=monokai trying to current the time stored in database to the timezone i passed, if australia, it should return me false if the time expires and true if it falls in between the start and stop but somehow its always returning me false
t
Haven't looked at your codes, but your testing data is in April, so of course it will always return false
startDate = "2024-04-12 10:00:00";
endDate = "2024-04-12 11:22:00";
timezone = "Australia/Sydney";
g
april, i was testing to be in dec
g
well you date format is wrong then.
yyyy-mm-dd
so your code is being read 12th of April.
g
I changed it and it is still causing an issue
g
I am in AU (UTC+11 / Sydney) I changed the time in your GIST (It is currently 2024-12-06 01:35 )
Copy code
startDate = "2024-12-06 01:00:00";
endDate = "2024-12-06 02:22:00";
timezone = "Australia/Sydney";
And I get true.