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

Commit

Permalink
Merge pull request #532 from dart-lang:removeTimezone
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 503370753
  • Loading branch information
copybara-github committed Jan 20, 2023
2 parents 6140b60 + c97ee27 commit 039f2b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.18.1

* Update ruble sign and update corresponding test
* Remove unimplemented timezone functionality

## 0.18.0
* Add support for `minimumSignificantDigits` / `maximumSignificantDigits` in
Expand Down
19 changes: 0 additions & 19 deletions lib/src/intl/date_format_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -386,14 +386,8 @@ class _DateFormatPatternField extends _DateFormatField {
return formatFractionalSeconds(date);
case 's':
return formatSeconds(date);
case 'v':
return formatTimeZoneId(date);
case 'y':
return formatYear(date);
case 'z':
return formatTimeZone(date);
case 'Z':
return formatTimeZoneRFC(date);
default:
return '';
}
Expand Down Expand Up @@ -686,19 +680,6 @@ class _DateFormatPatternField extends _DateFormatField {
return padTo(width, date.second);
}

String formatTimeZoneId(DateTime date) {
// TODO(alanknight): implement time zone support
throw UnimplementedError();
}

String formatTimeZone(DateTime date) {
throw UnimplementedError();
}

String formatTimeZoneRFC(DateTime date) {
throw UnimplementedError();
}

/// Return a string representation of the object padded to the left with
/// zeros. Primarily useful for numbers.
String padTo(int width, Object toBePrinted) =>
Expand Down

0 comments on commit 039f2b4

Please sign in to comment.