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

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

Issue 219503002: Fix bad HttpDate.format. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/corelib/date_time_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 9720426d3cd268930d79a3d04ed5dbb955ec71b8..94a329807423169700622591dabf8fcd5ce8fab6 100644
--- a/sdk/lib/io/http_date.dart
+++ b/sdk/lib/io/http_date.dart
@@ -51,11 +51,11 @@ class HttpDate {
..write(month[d.month - 1])
..write(" ")
..write(d.year.toString())
- ..write(d.hour < 9 ? " 0" : " ")
+ ..write(d.hour <= 9 ? " 0" : " ")
..write(d.hour.toString())
- ..write(d.minute < 9 ? ":0" : ":")
+ ..write(d.minute <= 9 ? ":0" : ":")
..write(d.minute.toString())
- ..write(d.second < 9 ? ":0" : ":")
+ ..write(d.second <= 9 ? ":0" : ":")
..write(d.second.toString())
..write(" GMT");
return sb.toString();
« no previous file with comments | « no previous file | tests/corelib/date_time_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698