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

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

Issue 12047046: Change new DateTime.fromString to DateTime.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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 | « no previous file | sdk/lib/core/date_time.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 3c7a0fadec2f6c9ed81cd21a0bbd8624f36c94d3..a9cd309befb1f446dbdf8317b06744033a6f8880 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) {
- DateTime date = new DateTime.fromString(received);
+ DateTime date = DateTime.parse(received);
StringBuffer formattedTime = new StringBuffer();
if (date.hour < 10) formattedTime.add("0");
formattedTime.add(date.hour);
« no previous file with comments | « no previous file | sdk/lib/core/date_time.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698