Hello! I've made another date and time tests with different timezones - this time I'm focused only on results, not what is seen in debug mode.My Server is in GMT +2 timezoneMy Client is in GMT +4 timezoneI'm doing 3 tests:(1) getting Now()(2) Splitting this Now to Numbers(3) Constructing Date And Time from constant Numbers (Let's say time: 20:30)All that data I put into structure and:- put it into display elements- put it into file as xmlResults are strange for me and not coherent:Let's say it's 10:00 on the server side DISPLAYING Result:GMT + 4 (Client Side)(1) 12:00 Client Now - OK(2) 10:00 (not expected -2 hours) (3) 22:30 (not expected - constant 20:30 +2 hours), should be 20:30 - cause those values where put to construct date and timeGMT + 2 (Server Side)(1) 12:00 (+2 hours) - let's say it's expected, cause we write prepared time on the screen, still...if we do it on server side - i would expect server side time even when displaying(2) 12:00 (+2 hours) - the same as above,(3) 20:30 (OK) - but why different behaviour when splitting and when constructing?FILE Result:GMT + 4 (Client Side)(1) 10:00 (not expected -2 hours) - when I want to save client time - I want client time, not server time :)(2) 12:00 (OK)(3) 18:30 (not expected -2 hours) - like when displaying server side calculations - again not coherent with split, should be 20:30 - cause those values where put to construct date and timeGMT + 2 (Server Side)(1) 10:00 (OK)(2) 10:00 (OK)(3) 20:30 (OK)The question is, could you make some commentaries to those results?Would be great to have a compact documentation about time and timezones to be always sure what time we get, what time we put, what's happening between services and client side actions with different timezones.Best regards! Jakub TutajNeoprimus.com
P.S. Here's a test project: timeZones.tar.gz
There are some redundant Serialize XML models, but they were to test if it matters when this model is inside or outside service - answer is: it doesn't matter :)
For best results, use the Firefox browser..