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

Unified Diff: samples/swarm/DataSource.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/swarm/DataSource.dart
diff --git a/samples/swarm/DataSource.dart b/samples/swarm/DataSource.dart
index 8c7d0e82fe8c2af76a5d3f4d7f5a926ce74588d9..5b56c9986f34b3a746d6f023a26d6d06eac286bc 100644
--- a/samples/swarm/DataSource.dart
+++ b/samples/swarm/DataSource.dart
@@ -167,7 +167,7 @@ class Feed {
/** A single article or posting to display. */
class Article {
final String id;
- Date date;
+ DateTime date;
final String title;
final String author;
final bool hasThumbnail;
@@ -236,7 +236,7 @@ class Article {
final dateInSeconds = decoder.readInt();
final snippet = decoder.readString();
final date =
- new Date.fromMillisecondsSinceEpoch(dateInSeconds*1000, isUtc: true);
+ new DateTime.fromMillisecondsSinceEpoch(dateInSeconds*1000, isUtc: true);
return new Article(source, id, date, title, author, srcUrl, hasThumbnail,
snippet);
}

Powered by Google App Engine
This is Rietveld 408576698