angulardart / angular_components

The official Material Design components for AngularDart. Used at Google in production apps.
https://pub.dev/packages/angular_components
372 stars 123 forks source link

Setting date to epoch in TimePicker leads to incorrect timezoneoffset during summer time #416

Open ayushin opened 5 years ago

ayushin commented 5 years ago

The current behaviour results in "winter time" time zone also during the summer (as the epoch is 1st January) and this breaks the conversion between UTC and local time (toUtc() toLocal())

There is no real fix to this, but this should be clearly documented.