! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Clock doesnt accept %D custom format value
Status:
RESOLVED: FIXED
Product:
Xfce4-panel

Comments

Description Yousuf 'Jay' Philips 2019-07-16 20:24:08 CEST
Created attachment 8783 
screenshot with red error highlight of field

Steps:
1. right-click on Clock in panel
2. click Properties in context menu
3. under Clock Options, select 'Custom Format' in Format drop down list
4. enter in %D into the text field

In panel 4.12.2 (Xubuntu 18.04) and 4.13.6 (Xubuntu 19.10), the entire text of the Clock with disappear. In 4.13.6, the text field will also turn red to indicate an error, though the documentation clearly states that %D is for "date; same as %m/%d/%y".

http://docs.xfce.org/help.php?version=4.12&locale=en_US&component=xfce4-panel&page=clock
Comment 1 Yousuf 'Jay' Philips 2019-07-16 20:52:38 CEST
Seems more are affected as mentioned here - "The %D, %U and %W conversions are not supported, nor is the 'E' modifier."
https://developer.gnome.org/glib/stable/glib-GDateTime.html#g-date-time-format
Comment 2 Simon Steinbeiss editbugs 2019-07-16 21:08:31 CEST
Yeah, the docs need to be updated in this case.
If you have a full list of characters I can go ahead and do that.
Comment 3 Yousuf 'Jay' Philips 2019-07-31 23:04:14 CEST
Okay I checked them all and other than the ones already mentioned, only the %N (nanoseconds) didnt work.

Bug #15721

Reported by:
Yousuf 'Jay' Philips
Reported on: 2019-07-16
Last modified on: 2019-08-01

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Version:
4.13.6

Attachments

screenshot with red error highlight of field (28.97 KB, image/png)
2019-07-16 20:24 CEST , Yousuf 'Jay' Philips
no flags

Additional information