| Index: samples/chat/dart_client/chat.dart
|
| diff --git a/samples/chat/dart_client/chat.dart b/samples/chat/dart_client/chat.dart
|
| index e21c390de8b1e1eec14da37579d1eab0b655b00b..29b5503782ebcda646871e1c5cfdb7fe4f73530b 100644
|
| --- a/samples/chat/dart_client/chat.dart
|
| +++ b/samples/chat/dart_client/chat.dart
|
| @@ -235,14 +235,14 @@ class Chat {
|
| String formatMessageTime(String received) {
|
| Date date = new Date.fromString(received);
|
| StringBuffer formattedTime = new StringBuffer();
|
| - if (date.hours < 10) formattedTime.add("0");
|
| - formattedTime.add(date.hours);
|
| + if (date.hour < 10) formattedTime.add("0");
|
| + formattedTime.add(date.hour);
|
| formattedTime.add(":");
|
| - if (date.minutes < 10) formattedTime.add("0");
|
| - formattedTime.add(date.minutes);
|
| + if (date.minute < 10) formattedTime.add("0");
|
| + formattedTime.add(date.minute);
|
| formattedTime.add(":");
|
| - if (date.seconds < 10) formattedTime.add("0");
|
| - formattedTime.add(date.seconds);
|
| + if (date.second < 10) formattedTime.add("0");
|
| + formattedTime.add(date.second);
|
| return formattedTime.toString();
|
| }
|
|
|
|
|