GlideDateTime changing the days with months

hsbicalho
Tera Contributor

hsbicalho_0-1695324522230.png

the freezingEnd value is comming with months and days switched, this is happaning just for the freezingEnd days, that i get from the cmn_schedule_maintenance table, i discovered that, when i print the hour of the day from the GlideDateTime, the time zone from the end and start dates are diferent.

hsbicalho_1-1695324780938.png

this are my register on the cmn_schedule_plan table, so when i print an error message using 

hsbicalho_2-1695324847485.png

i get those times 

e149e57f-eb55-47f5-a09c-45c52176adb0.jpg

my date are those...

hsbicalho_4-1695325055903.pngthe freezingEnd stays that way

while all the other dates change the months and days positions, so when i need to compare the dates, i get wrong results.
what is happening?

 

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, unfortunately a partial screenshot of your code does not help the community understand the plugin\application\tables\fields involved, or your configuration; and does not make it possible for anyone to reproduce your issue in a PDI to validate.

Did you mean the Schedule entries table 'cmn_schedule_span'?
Perhaps you could update your post with clear and specific details of your config, context of your issue  and your full code as plaintext