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

Unified Diff: runtime/lib/date.dart

Issue 10790099: Fix printing of dates with year 0. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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
« no previous file with comments | « lib/compiler/implementation/lib/mockimpl.dart ('k') | tests/corelib/date_time8_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/date.dart
diff --git a/runtime/lib/date.dart b/runtime/lib/date.dart
index ac4ed1fc1c591ddbeed3b7ce55f58c4bc84d4eac..71c079fa7b6e40c1ed5d2b10b0efce6c3a5cc51a 100644
--- a/runtime/lib/date.dart
+++ b/runtime/lib/date.dart
@@ -196,7 +196,7 @@ class DateImplementation implements Date {
if (absN >= 1000) return "$n";
if (absN >= 100) return "${sign}0$absN";
if (absN >= 10) return "${sign}00$absN";
- if (absN >= 1) return "${sign}000$absN";
+ return "${sign}000$absN";
}
String threeDigits(int n) {
if (n >= 100) return "${n}";
« no previous file with comments | « lib/compiler/implementation/lib/mockimpl.dart ('k') | tests/corelib/date_time8_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698