Check time separator version

This commit is contained in:
Charles Gagnon
2025-07-29 09:50:30 -04:00
parent d2471ce2ef
commit 7d64244a04
2 changed files with 5 additions and 3 deletions

View File

@@ -1357,7 +1357,9 @@ export const Panel = GObject.registerClass(
!setClockText(datetimeParts) &&
!setClockText(time)
) {
let timeParts = time.split(':')
// https://gitlab.gnome.org/GNOME/gnome-desktop/-/merge_requests/176
let timeSeparator = time.indexOf('') > 0 ? '' : ':'
let timeParts = time.split(timeSeparator)
if (!this._clockFormat) {
this._clockFormat = DESKTOPSETTINGS.get_string('clock-format')