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

Unified Diff: client/samples/total/src/DateTimeUtils.dart

Issue 8966029: Report errors and warnings for hiding elements, issue 572. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for comments Created 9 years 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 | « client/samples/swarm/DataSource.dart ('k') | client/samples/total/src/Functions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/total/src/DateTimeUtils.dart
diff --git a/client/samples/total/src/DateTimeUtils.dart b/client/samples/total/src/DateTimeUtils.dart
index 6bed33bb2a6a89b5e8747217804898a606afc358..d0a3cb725329e4290097a346045d48bab30c860c 100644
--- a/client/samples/total/src/DateTimeUtils.dart
+++ b/client/samples/total/src/DateTimeUtils.dart
@@ -63,8 +63,8 @@ class DateUtils {
// Return the number of days between 1899-12-30 and the current time.
static double now() {
- Date now = new Date.now();
- int milliseconds = now.difference(EPOCH).inMilliseconds;
+ Date nowDate = new Date.now();
+ int milliseconds = nowDate.difference(EPOCH).inMilliseconds;
milliseconds += MILLISECONDS_PER_HOUR; // FIXME - something is one hour behind
double days = milliseconds / MILLISECONDS_PER_DAY;
return days;
@@ -78,8 +78,8 @@ class DateUtils {
if (m != null) {
int month = _parseInt(m[1]);
int day = _parseInt(m[2]);
- Date now = new Date.now();
- int thisYear = now.year;
+ Date nowDate = new Date.now();
+ int thisYear = nowDate.year;
Date dateTime = new Date(thisYear, month, day, 0, 0, 0, 0);
int milliseconds = dateTime.difference(EPOCH).inMilliseconds;
milliseconds += MILLISECONDS_PER_HOUR; // FIXME - something is one hour behind
« no previous file with comments | « client/samples/swarm/DataSource.dart ('k') | client/samples/total/src/Functions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698