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

Unified Diff: samples/ui_lib/util/DateUtils.dart

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/vm/snapshot_test.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/ui_lib/util/DateUtils.dart
===================================================================
--- samples/ui_lib/util/DateUtils.dart (revision 13683)
+++ samples/ui_lib/util/DateUtils.dart (working copy)
@@ -55,8 +55,7 @@
int zoneOffset = int.parse(parts[5]) ~/ 100;
// Pretend it's a UTC time
- Date result = new Date(
- year, month, day, hours, minutes, seconds, 0, isUtc: true);
+ Date result = new Date.utc(year, month, day, hours, minutes, seconds, 0);
// Shift it to the proper zone, but it's still a UTC time
result = result.subtract(new Duration(hours: zoneOffset));
// Then render it as a local time
« no previous file with comments | « runtime/vm/snapshot_test.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698