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

Unified Diff: samples/chat/dart_client/chat.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. 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
« no previous file with comments | « samples/chat/chat_server_lib.dart ('k') | samples/clock/web/balls.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/chat/dart_client/chat.dart
diff --git a/samples/chat/dart_client/chat.dart b/samples/chat/dart_client/chat.dart
index 84786a8ebe654586ebb694e6d7231676dc96482f..3c7a0fadec2f6c9ed81cd21a0bbd8624f36c94d3 100644
--- a/samples/chat/dart_client/chat.dart
+++ b/samples/chat/dart_client/chat.dart
@@ -233,7 +233,7 @@ class Chat {
}
String formatMessageTime(String received) {
- Date date = new Date.fromString(received);
+ DateTime date = new DateTime.fromString(received);
StringBuffer formattedTime = new StringBuffer();
if (date.hour < 10) formattedTime.add("0");
formattedTime.add(date.hour);
« no previous file with comments | « samples/chat/chat_server_lib.dart ('k') | samples/clock/web/balls.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698