Skip to content

Upgrading timezone 0.4 to 0.5

Breaking0.4.3 → 0.5.9Breaking1Platform1New3Changed11Fixed5Other2

BreakingUpgrade verdict

1 breaking change and a platform requirement change.

  • Code that called the synchronous time zone initializer must switch to the async one.
  • Adds support for Dart 2.
2 items need code or config changes

Dart SDK requirement changed in 0.5.6: >=1.9.0 → >=2.1.0 <3.0.0.

Breaking1
Removes initializeTimeZoneSync method because it is incompatible with the async method for resolving package URIs.
initializeTimeZoneSync
Platform1
Adds support for Dart 2.

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: get TZDateTime.location: Location
  • removed: get TZDateTime.timeZone: TimeZone
  • changed: ctor TZDateTime(Location location, int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …]) → ctor TZDateTime(Location location, int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …, int microsecond = …])
  • changed: ctor TZDateTime.fromMillisecondsSinceEpoch(Location location, int millisecondsSinceEpoch) → ctor TZDateTime.fromMillisecondsSinceEpoch( Location location, int millisecondsSinceEpoch)
  • changed: ctor TZDateTime.local(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …]) → ctor TZDateTime.local(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …, int microsecond = …])
  • changed: ctor TZDateTime.utc(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …]) → ctor TZDateTime.utc(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …, int microsecond = …])
  • changed: function initializeTimeZone([String path = …]): Future → function initializeTimeZone([String path = …]): Future<void>
  • changed: method TZDateTime.compareTo(TZDateTime other): int → method TZDateTime.compareTo(DateTime other): int
  • changed: method TZDateTime.difference(TZDateTime other): Duration → method TZDateTime.difference(DateTime other): Duration
  • changed: method TZDateTime.isAtSameMomentAs(TZDateTime other): bool → method TZDateTime.isAtSameMomentAs(DateTime other): bool
  • changed: method TZDateTime.operator ==(other): bool → method TZDateTime.operator ==(dynamic other): bool
  • changed: method TimeZone.operator ==(TimeZone other): bool → method TimeZone.operator ==(dynamic other): bool
  • added: ctor TZDateTime.fromMicrosecondsSinceEpoch( Location location, int microsecondsSinceEpoch)
  • added: field TZDateTime.location: final Location
  • added: field TZDateTime.timeZone: final TimeZone
  • added: get TZDateTime.microsecond: int
  • added: get TZDateTime.microsecondsSinceEpoch: int
  • added: static field TimeZone.UTC: const TimeZone
  • added: function initializeTimeZones(): void
  • added: function initializeTimeZones(): void
  • added: function initializeTimeZones(): void
  • removed: function initializeTimeZoneSync([String p]): void
  • removed: get TZDateTime.location: Location
  • removed: get TZDateTime.timeZone: TimeZone
  • changed: ctor TZDateTime(Location location, int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …]) → ctor TZDateTime(Location location, int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …, int microsecond = …])
  • changed: ctor TZDateTime.fromMillisecondsSinceEpoch(Location location, int millisecondsSinceEpoch) → ctor TZDateTime.fromMillisecondsSinceEpoch( Location location, int millisecondsSinceEpoch)
  • changed: ctor TZDateTime.local(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …]) → ctor TZDateTime.local(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …, int microsecond = …])
  • changed: ctor TZDateTime.utc(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …]) → ctor TZDateTime.utc(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …, int microsecond = …])
  • changed: function initializeTimeZone([String p]): Future → function initializeTimeZone([String path]): Future<void>
  • changed: method TZDateTime.compareTo(TZDateTime other): int → method TZDateTime.compareTo(DateTime other): int
  • changed: method TZDateTime.difference(TZDateTime other): Duration → method TZDateTime.difference(DateTime other): Duration
  • changed: method TZDateTime.isAtSameMomentAs(TZDateTime other): bool → method TZDateTime.isAtSameMomentAs(DateTime other): bool
  • changed: method TZDateTime.operator ==(other): bool → method TZDateTime.operator ==(dynamic other): bool
  • changed: method TimeZone.operator ==(TimeZone other): bool → method TimeZone.operator ==(dynamic other): bool
  • added: ctor TZDateTime.fromMicrosecondsSinceEpoch( Location location, int microsecondsSinceEpoch)
  • added: field TZDateTime.location: final Location
  • added: field TZDateTime.timeZone: final TimeZone
  • added: get TZDateTime.microsecond: int
  • added: get TZDateTime.microsecondsSinceEpoch: int
  • added: static field TimeZone.UTC: const TimeZone
  • removed: get TZDateTime.location: Location
  • removed: get TZDateTime.timeZone: TimeZone
  • removed: variable tzDataExtension: const String
  • removed: variable tzDataLatestVersion: const String
  • changed: ctor TZDateTime(Location location, int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …]) → ctor TZDateTime(Location location, int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …, int microsecond = …])
  • changed: ctor TZDateTime.fromMillisecondsSinceEpoch(Location location, int millisecondsSinceEpoch) → ctor TZDateTime.fromMillisecondsSinceEpoch( Location location, int millisecondsSinceEpoch)
  • changed: ctor TZDateTime.local(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …]) → ctor TZDateTime.local(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …, int microsecond = …])
  • changed: ctor TZDateTime.utc(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …]) → ctor TZDateTime.utc(int year, [int month = …, int day = …, int hour = …, int minute = …, int second = …, int millisecond = …, int microsecond = …])
  • changed: field LocationDatabase.Location>(): final Map<String, Location> → field LocationDatabase.Location>: final
  • changed: method TZDateTime.compareTo(TZDateTime other): int → method TZDateTime.compareTo(DateTime other): int
  • changed: method TZDateTime.difference(TZDateTime other): Duration → method TZDateTime.difference(DateTime other): Duration
  • changed: method TZDateTime.isAtSameMomentAs(TZDateTime other): bool → method TZDateTime.isAtSameMomentAs(DateTime other): bool
  • changed: method TZDateTime.operator ==(other): bool → method TZDateTime.operator ==(dynamic other): bool
  • changed: method TimeZone.operator ==(TimeZone other): bool → method TimeZone.operator ==(dynamic other): bool
  • added: ctor TZDateTime.fromMicrosecondsSinceEpoch( Location location, int microsecondsSinceEpoch)
  • added: field TZDateTime.location: final Location
  • added: field TZDateTime.timeZone: final TimeZone
  • added: get TZDateTime.microsecond: int
  • added: get TZDateTime.microsecondsSinceEpoch: int
  • added: static field TimeZone.UTC: const TimeZone