Si Hobbs
02/01/2025, 7:00 AMtrandate
on a sales order is just a date. In the XML it shows <trandate>29-Jan-2025</trandate>
(noting that's my date format there) but a filter of ["trandate", "on", "29-Jan-2025"]
only matches the day before 28-Jan
. The various gpts I've tred basically say "Oh if you're in aanother timezone you have to work out what day it was in UTC and pass that". This is super weird and i'd love to find some docs which explain this properly - I think if you're in the US timezone this would always work because a date would always match UTC, but any timezones east of UTC would need this arbitrary adjustment right?Si Hobbs
02/01/2025, 7:46 AMgnuwolf
02/02/2025, 1:56 AMSi Hobbs
02/02/2025, 3:31 AMgnuwolf
02/02/2025, 4:16 AMSi Hobbs
02/02/2025, 4:32 AMerictgrubaugh
02/02/2025, 10:03 PMDate
in the backend and will go through timezone conversion at some stage(s) of retrieval/display.
The usual approach is to use the N/format
module to translate to/from Date
and string
. Without your code, it's hard to be more specific.Si Hobbs
02/04/2025, 4:36 AMSi Hobbs
02/04/2025, 4:36 AMMarvin
02/04/2025, 1:41 PM