BuddiesOfBudgie / budgie-desktop

Budgie Desktop is a familiar, modern desktop environment.
https://buddiesofbudgie.org
GNU General Public License v2.0
912 stars 46 forks source link

[Bug] Panel with custom clock format shows (null) when using %v for week of the year #537

Closed bjo81 closed 3 months ago

bjo81 commented 4 months ago

Description

The clock in the panel should show 14:15:20 19.02.2024 08 when using %H:%M:%S %d.%m.%Y %W assuming it uses the output from date - 08 is the week of the year. Instead it only shows (null) as the whole output.

Budgie version

10.9.1-

Operating System

Arch

Steps to reproduce the issue

Edit the settings of the clock in the panel, set it to %H:%M:%S %d.%m.%Y %W

Actual result

(null)

Expected result

14:15:20 19.02.2024 08

Additional information

No response

fossfreedom commented 4 months ago

Think it should be %u not %W

https://valadoc.org/glib-2.0/GLib.DateTime.format.html

bjo81 commented 4 months ago

According to your URL, it's %v for "week of the year". Your mentioned %u is day of the week. But thanks for the clarifcation which docs to search.

bjo81 commented 4 months ago

But with %v also (null) is shown.

bjo81 commented 3 months ago

Some testing with DateTime showed that the linked docs were wrong. According to https://docs.gtk.org/glib/method.DateTime.format.html it's %V which works for number of the week.