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); |