Consider the code:
uses RemObjects.Elements.RTL;
...
writeLn(DateTime.UtcNow.ToString("yyyy-MM-dd+HH:mm", TimeZone.Local));
When run at about the same time, this code produces:
on java: 2018-09-23+10:25
on .NET: 2018-09-23+08:25
Please notice a two-hour difference. The right local time on my computer is the java’s one. I am in UTC+1 with DST on.
Bug or my bad?
mh
(marc hoffman)
September 23, 2018, 3:36pm
2
By definition a bug, if the data doesn’t match. Looking at the code, it seems that the .NET version of ToString just doesn’t take into account the timezone parameter at all. that’s bad :(.
Thanks, logged as bugs://81056
bugs://81056 got closed with status fixed.
mh
(marc hoffman)
September 23, 2018, 3:44pm
5
Fixed in GitHub (http://github.com/remobjects/RTL2 ) and for next week’s build.