Fix time in conversation row
This commit is contained in:
parent
23a298dc4b
commit
68ab977287
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue