Just looking for a quick sanity check and maybe some pointers regarding an expression that I'm using on a label component in perspective.
The specific function is:
dateFormat(NOW(), "YYYY")
I'm having a very confusing time as it is currently returning 2025. This post was created at around 11:30AM on Dec. 30th 2024 local time. I've checked PC time settings, local PC time settings, and pretty much everything else I can think of anyways.
For reference, now() by itself seems to return the correct date and time, not 2025.
Just to round this off a bit, YYYY returns the "week year", or the year that a week belongs to. (As far as I can make out) Week 1 contains the 1st January and since that's a Wednesday in 2025 the preceeding Monday and Tuesday are also in Week 1 of 2025. So (for my locale, Ireland), I get, dateFormat(toDate("2024-12-29 08:00:00"), "YYYY") → 2024 dateFormat(toDate("2024-12-30 08:00:00"), "YYYY") → 2025 dateFormat(toDate("2024-12-31 08:00:00"), "YYYY") → 2025 dateFormat(toDate("2025-01-01 08:00:00"), "YYYY") → 2025