DateTime based on system locale (#1444)

This commit is contained in:
end-4
2025-06-17 23:50:56 +02:00
committed by GitHub
+3 -3
View File
@@ -9,9 +9,9 @@ pragma ComponentBehavior: Bound
* A nice wrapper for date and time strings.
*/
Singleton {
property string time: Qt.formatDateTime(clock.date, ConfigOptions?.time.format ?? "hh:mm")
property string date: Qt.formatDateTime(clock.date, ConfigOptions?.time.dateFormat ?? "dddd, dd/MM")
property string collapsedCalendarFormat: Qt.formatDateTime(clock.date, "dd MMMM yyyy")
property string time: Qt.locale().toString(clock.date, ConfigOptions?.time.format ?? "hh:mm")
property string date: Qt.locale().toString(clock.date, ConfigOptions?.time.dateFormat ?? "dddd, dd/MM")
property string collapsedCalendarFormat: Qt.locale().toString(clock.date, "dd MMMM yyyy")
property string uptime: "0h, 0m"
SystemClock {