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

Unified Diff: sdk/lib/io/http_date.dart

Issue 274243002: http_date: produce leading zero on day component (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « no previous file | tests/standalone/io/http_date_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_date.dart
diff --git a/sdk/lib/io/http_date.dart b/sdk/lib/io/http_date.dart
index 94a329807423169700622591dabf8fcd5ce8fab6..9bf81973a16d639b50c121af8c5bd60a67121646 100644
--- a/sdk/lib/io/http_date.dart
+++ b/sdk/lib/io/http_date.dart
@@ -46,6 +46,7 @@ class HttpDate {
StringBuffer sb = new StringBuffer()
..write(wkday[d.weekday - 1])
..write(", ")
+ ..write(d.day <= 9 ? "0" : "")
..write(d.day.toString())
..write(" ")
..write(month[d.month - 1])
« no previous file with comments | « no previous file | tests/standalone/io/http_date_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698