srawlins / timezone

Time zone database and time zone aware DateTime object for Dart.
BSD 2-Clause "Simplified" License
102 stars 54 forks source link

Fix dropping microseconds in TZDateTime #32

Closed jsmarr closed 5 years ago

jsmarr commented 5 years ago

Timezone conversion was done in milliseconds, which had the side effect of dropping any microseconds that were passed into the constructor. Fix is to explicitly propagate the original microseconds when creating the converted final datetime (they're not affected by any timezone shifting).

Fixes #27