Skip to content

Upgrading timezone 0.10 to 0.11

Breaking0.10.1 → 0.11.2Breaking1Security1New2Changed4Other1

BreakingUpgrade verdict

1 breaking change and a security fix.

  • The offset value now comes as a time duration object rather than a plain number of milliseconds.
  • The code that reads timezone database files now checks header offsets and lengths, guarding against malformed data.
2 items need code or config changes

Dart SDK requirement changed in 0.11.0: >=2.19.0 <3.0.0 → ^3.10.0.

Breaking1
Makes Location.offset a Duration instead of an int.
Location.offsetDuration
Security1
Validates header offsets and lengths in the tzdb deserializer.
tzdb deserializer