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

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

Issue 10411057: Deprecate use of timezones. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix code using old api. Created 8 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
Index: samples/total/client/DateTimeUtils.dart
diff --git a/samples/total/client/DateTimeUtils.dart b/samples/total/client/DateTimeUtils.dart
index d0a3cb725329e4290097a346045d48bab30c860c..b44014d06a557dffeed074e2cd68e07d0f705915 100644
--- a/samples/total/client/DateTimeUtils.dart
+++ b/samples/total/client/DateTimeUtils.dart
@@ -27,7 +27,7 @@ class DateUtils {
static Date getDateTime(double daysSince18991230) {
double daysSinceEpoch = daysSince18991230 - DAYS_FROM_1900_TO_1970;
int millisSinceEpoch = (daysSinceEpoch * MILLISECONDS_PER_DAY).toInt();
- return new Date.fromEpoch(millisSinceEpoch, const TimeZone.utc());
+ return new Date.fromEpoch(millisSinceEpoch, isUtc: true);
}
static double getTime(int hour, int minute, int second) {

Powered by Google App Engine
This is Rietveld 408576698