Skip to content

Commit 8ad8ffd

Browse files
authored
Merge pull request #285 from zihu12/tz
Use local time zone for absolute time
2 parents 9adbad5 + f12aa17 commit 8ad8ffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ui/dates.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ class _TimestampState extends State<Timestamp> {
4646
if (_useRelativeTimestamp) {
4747
formattedTime = createRelativeDate(timestamp);
4848
} else {
49-
formattedTime = absoluteDateFormat.format(timestamp);
49+
formattedTime = absoluteDateFormat.format(timestamp.toLocal());
5050
}
5151

5252
_useRelativeTimestamp = !_useRelativeTimestamp;
5353
});
5454
},
5555
);
5656
}
57-
}
57+
}

0 commit comments

Comments
 (0)