I try to save a Date/Time value in the database an have a wrong time saved. When I take the Date/Time-Picker and save - I have no problem. My local time (UTC+2) ist saved.
But as far as I use the “change hours” function I have a problem.
As you see here I give the hour the fixed value “8”:
When debugging everything seems to be ok:
But with a look in the database I have the hour “10” stored.
Seems to be a problem that the functions always calculates beginning from UTC and not from the local time?
Or what can I do instead?