Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: pkg/intl/lib/src/date_format_field.dart

Issue 12317107: ceil/floor/truncate/round return integers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Some fixes from CL 11748016. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/intl/lib/src/date_format_field.dart
diff --git a/pkg/intl/lib/src/date_format_field.dart b/pkg/intl/lib/src/date_format_field.dart
index 1d3749037237e4045e26bc6e340751dd471f47e9..a2099b08b34d88233fd18c209a11bf5ed5b8159e 100644
--- a/pkg/intl/lib/src/date_format_field.dart
+++ b/pkg/intl/lib/src/date_format_field.dart
@@ -345,7 +345,7 @@ class _DateFormatPatternField extends _DateFormatField {
}
String formatQuarter(DateTime date) {
- var quarter = (date.month / 3).truncate().toInt();
+ var quarter = (date.month / 3).truncate();
if (width < 4) {
return symbols.SHORTQUARTERS[quarter];
} else {

Powered by Google App Engine
This is Rietveld 408576698