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

Unified Diff: pkg/logging/lib/logging.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: pkg/logging/lib/logging.dart
diff --git a/pkg/logging/lib/logging.dart b/pkg/logging/lib/logging.dart
index 3713175d4a78c7c4fc4169029bb12a37ee16a406..5e0a23950faf3cd7d1ffeb31ca01b4e335f51138 100644
--- a/pkg/logging/lib/logging.dart
+++ b/pkg/logging/lib/logging.dart
@@ -313,7 +313,7 @@ class LogRecord {
final String loggerName;
/** Time when this record was created. */
- final Date time;
+ final DateTime time;
/** Unique sequence number greater than all log records created before it. */
final int sequenceNumber;
@@ -329,6 +329,6 @@ class LogRecord {
LogRecord(
this.level, this.message, this.loggerName,
[time, this.exception, this.exceptionText]) :
- this.time = (time == null) ? new Date.now() : time,
+ this.time = (time == null) ? new DateTime.now() : time,
this.sequenceNumber = LogRecord._nextNumber++;
}

Powered by Google App Engine
This is Rietveld 408576698