mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Check time separator version
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user