I have UTC date/times stored in a SQL Server database datetime2(0) column. They are written as a string in the format 'yyyy-MM-dd HH:mm:ss'.
I'm in the UK so until last Sunday our clock time was UTC/GMT, but it's now BST (UTC/GMT + 01:00)
Since the local clock change, when I query the database jRDC2 seems to be assuming that the stored datetime is in my local time and returns ticks which are an hour before the stored time.
So for example;
In the database I have 2021-03-28 02:00:00,
Querying via JRDC2 returns 1616893200000, which is 2021-03-28 01:00:00 UTC.
Is there a way I can have JRDC2 treat the stored date/times as UTC?
I've tried adding
into jRDC2 but get the same result.
Thanks.
I'm in the UK so until last Sunday our clock time was UTC/GMT, but it's now BST (UTC/GMT + 01:00)
Since the local clock change, when I query the database jRDC2 seems to be assuming that the stored datetime is in my local time and returns ticks which are an hour before the stored time.
So for example;
In the database I have 2021-03-28 02:00:00,
Querying via JRDC2 returns 1616893200000, which is 2021-03-28 01:00:00 UTC.
Is there a way I can have JRDC2 treat the stored date/times as UTC?
I've tried adding
B4X:
DateTime.SetTimeZone(0)
Thanks.