It just occured that the date and time formatting seems to be a little off. It could also be me Not 100% sure and if this is right, is there a way to fix this. Here is the scenario.
I’m trying to convert UTC time (from ISO 8601 format) using addHours. What i found was that webcore seems to be handling the date and time differently, depending on the time. Here is 2 test i did. One where the UTC time is past 12:00:00 and another one before that. When it goes past 12:00:00 that is when things go out of place.
This shows things working normally, where after converting and adding hours, the time is correct:-
Here is the one where it goes off by a day.
From what i can see, the error in time only pop’s in when the time(before conversion is from 12:00:00 to 23:59:59. Outside those times, the conversion doesn’t seem right.
I hope all this makes sense.