mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
qt 5.4 patch in .diff format added, time display in system settings done
This commit is contained in:
@@ -246,11 +246,11 @@ namespace App {
|
||||
if (precise) {
|
||||
QDateTime dOnline(date(online)), dNow(date(now));
|
||||
if (dOnline.date() == dNow.date()) {
|
||||
return lng_status_lastseen_today(lt_time, dOnline.time().toString(qsl("hh:mm")));
|
||||
return lng_status_lastseen_today(lt_time, dOnline.time().toString(cTimeFormat()));
|
||||
} else if (dOnline.date().addDays(1) == dNow.date()) {
|
||||
return lng_status_lastseen_yesterday(lt_time, dOnline.time().toString(qsl("hh:mm")));
|
||||
return lng_status_lastseen_yesterday(lt_time, dOnline.time().toString(cTimeFormat()));
|
||||
}
|
||||
return lng_status_lastseen_date_time(lt_date, dOnline.date().toString(qsl("dd.MM.yy")), lt_time, dOnline.time().toString(qsl("hh:mm")));
|
||||
return lng_status_lastseen_date_time(lt_date, dOnline.date().toString(qsl("dd.MM.yy")), lt_time, dOnline.time().toString(cTimeFormat()));
|
||||
}
|
||||
int32 minutes = (now - online) / 60;
|
||||
if (!minutes) {
|
||||
@@ -264,9 +264,9 @@ namespace App {
|
||||
}
|
||||
QDateTime dOnline(date(online)), dNow(date(now));
|
||||
if (dOnline.date() == dNow.date()) {
|
||||
return lng_status_lastseen_today(lt_time, dOnline.time().toString(qsl("hh:mm")));
|
||||
return lng_status_lastseen_today(lt_time, dOnline.time().toString(cTimeFormat()));
|
||||
} else if (dOnline.date().addDays(1) == dNow.date()) {
|
||||
return lng_status_lastseen_yesterday(lt_time, dOnline.time().toString(qsl("hh:mm")));
|
||||
return lng_status_lastseen_yesterday(lt_time, dOnline.time().toString(cTimeFormat()));
|
||||
}
|
||||
return lng_status_lastseen_date(lt_date, dOnline.date().toString(qsl("dd.MM.yy")));
|
||||
}
|
||||
|
Reference in New Issue
Block a user