Fix time in conversation row

This commit is contained in:
fiaxh 2019-05-31 13:18:26 +02:00
parent 23a298dc4b
commit 68ab977287

View file

@ -249,7 +249,7 @@ public class ConversationSelectorRow : ListBoxRow {
} }
private static string get_relative_time(DateTime datetime) { private static string get_relative_time(DateTime datetime) {
DateTime now = new DateTime.now_utc(); DateTime now = new DateTime.now_local();
TimeSpan timespan = now.difference(datetime); TimeSpan timespan = now.difference(datetime);
if (timespan > 365 * TimeSpan.DAY) { if (timespan > 365 * TimeSpan.DAY) {
return datetime.get_year().to_string(); return datetime.get_year().to_string();