Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 039f2b4

Browse files
Merge pull request #532 from dart-lang:removeTimezone
PiperOrigin-RevId: 503370753
2 parents 6140b60 + c97ee27 commit 039f2b4

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 0.18.1
22

33
* Update ruble sign and update corresponding test
4+
* Remove unimplemented timezone functionality
45

56
## 0.18.0
67
* Add support for `minimumSignificantDigits` / `maximumSignificantDigits` in

lib/src/intl/date_format_field.dart

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -386,14 +386,8 @@ class _DateFormatPatternField extends _DateFormatField {
386386
return formatFractionalSeconds(date);
387387
case 's':
388388
return formatSeconds(date);
389-
case 'v':
390-
return formatTimeZoneId(date);
391389
case 'y':
392390
return formatYear(date);
393-
case 'z':
394-
return formatTimeZone(date);
395-
case 'Z':
396-
return formatTimeZoneRFC(date);
397391
default:
398392
return '';
399393
}
@@ -686,19 +680,6 @@ class _DateFormatPatternField extends _DateFormatField {
686680
return padTo(width, date.second);
687681
}
688682

689-
String formatTimeZoneId(DateTime date) {
690-
// TODO(alanknight): implement time zone support
691-
throw UnimplementedError();
692-
}
693-
694-
String formatTimeZone(DateTime date) {
695-
throw UnimplementedError();
696-
}
697-
698-
String formatTimeZoneRFC(DateTime date) {
699-
throw UnimplementedError();
700-
}
701-
702683
/// Return a string representation of the object padded to the left with
703684
/// zeros. Primarily useful for numbers.
704685
String padTo(int width, Object toBePrinted) =>

0 commit comments

Comments
 (0)