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

Unified Diff: samples/swarm/swarm_ui_lib/util/DateUtils.dart

Issue 13841005: Rename DateTime constants to full names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « runtime/lib/date_patch.dart ('k') | sdk/lib/core/date_time.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/util/DateUtils.dart
diff --git a/samples/swarm/swarm_ui_lib/util/DateUtils.dart b/samples/swarm/swarm_ui_lib/util/DateUtils.dart
index b492baa30667dabeff1fec02f08e4f472385c9e0..bfc4b2b14e7025269713b8b61122a9225cc67f9d 100644
--- a/samples/swarm/swarm_ui_lib/util/DateUtils.dart
+++ b/samples/swarm/swarm_ui_lib/util/DateUtils.dart
@@ -155,7 +155,7 @@ class DateUtils {
int msSince1970 = dateTime.difference(unixTimeStart).inMilliseconds;
int daysSince1970 = msSince1970 ~/ Duration.MILLISECONDS_PER_DAY;
// 1970-1-1 was Thursday
- return ((daysSince1970 + DateTime.THU) % DateTime.DAYS_IN_WEEK);
+ return ((daysSince1970 + DateTime.THURSDAY) % DateTime.DAYS_IN_WEEK);
}
/** Formats a time in H:MM A format */
« no previous file with comments | « runtime/lib/date_patch.dart ('k') | sdk/lib/core/date_time.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698