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

Unified Diff: samples/swarm/DataSource.dart

Issue 10538105: Make isUtc a getter, change some method names in Date. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 6 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 | « samples/chat/dart_client/chat.dart ('k') | samples/third_party/dromaeo/common/BenchUtil.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/DataSource.dart
diff --git a/samples/swarm/DataSource.dart b/samples/swarm/DataSource.dart
index efb3f605a4e5cdbb450a685a6fa3bab3a7757ec7..042da41a7c0af69f2f8d348109cabb65255e23da 100644
--- a/samples/swarm/DataSource.dart
+++ b/samples/swarm/DataSource.dart
@@ -240,7 +240,8 @@ class Article {
final author = decoder.readString();
final dateInSeconds = decoder.readInt();
final snippet = decoder.readString();
- final date = new Date.fromEpoch(dateInSeconds*1000, isUtc: true);
+ final date =
+ new Date.fromMillisecondsSinceEpoch(dateInSeconds*1000, isUtc: true);
return new Article(source, id, date, title, author, srcUrl, hasThumbnail,
snippet);
}
« no previous file with comments | « samples/chat/dart_client/chat.dart ('k') | samples/third_party/dromaeo/common/BenchUtil.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698