curiosity-ai / h5

🚀 The next generation C# to JavaScript compiler
https://github.com/curiosity-ai/h5
Apache License 2.0
210 stars 30 forks source link

Fix Date.js toUniversalTime and toLocalTime #84

Closed mjrist closed 1 year ago

mjrist commented 1 year ago

Date.js toUniversalTime and toLocalTime are not applying the time zone offset to ticks when converting.

This change fixes that.

Note that bridge 17.6.0 did this correctly. I did not track down when it changed.

bridge 17.6.0 toUniversalTime: image Note mul(10000) is not necessary as $getTzOffset now handles the multiply.