hello everyone, maybe someone already have a solution to my problem.
in my software i want that the user put an hour and when i reach that hour i have to do something, let's keep it more general possible.
so i have put a numeric cell with hour and another with minute and comparing it with the actual time, but what happen when we reach the DST change time?
let's assume that the user put 02:30 AM (locatime) and the hour increase, i jump from 2:00 AM to 3:00 AM without doing the event.
in the other case, if the hour go back from 3:00 AM to 2:00 AM i do the event 2 time in the same day
i can write in the description to work with UTC time but it's not simple for the user, any suggestion?
i have done some test with this function
MakeDateTime doens't care about DST
29/10/2017 1:59:59 = 3718231199
29/10/2017 2:00:00 = 3718231200
29/10/2017 2:01:00 = 3718231260
29/10/2017 2:30:00 = 3718233000
29/10/2017 3:00:00 = 3718234800
29/10/2017 3:01:00 = 3718234860
29/10/2017 2:00:00 DST
time 3718224000 utc
GetCurrentDateTime 3718231200 localtime
29/10/2017 2:59:00 DST
time 3718227540 utc
GetCurrentDateTime 3718234740 localtime
29/10/2017 2:00:00
time 3718227600 utc
GetCurrentDateTime 3718231200 localtime jump back to the same with DST
thank you