French time format is wrong: 12-hours without AM/PM instead of 24-hours #867

Closed
opened 2016-06-03 13:56:50 +02:00 by LGD-Fr · 5 comments
LGD-Fr commented 2016-06-03 13:56:50 +02:00 (Migrated from github.com)

I have something like (with the af0dfdc version on fedora 23 and the french language) :

  • jeu., 03 juin 2016 01:45, instead of
  • jeu., 03 juin 2016 13:45.

Apparently I have the 12-hours format without the AM/PM indication, so morning and afternoon cannot even be discriminated…

I have something like (with the af0dfdc version on fedora 23 and the french language) : - _jeu., 03 juin 2016 **01:45**_, instead of - _jeu., 03 juin 2016 **13:45**_. Apparently I have the 12-hours format without the AM/PM indication, so morning and afternoon cannot even be discriminated…
PeterSurda commented 2016-06-03 15:02:35 +02:00 (Migrated from github.com)

Hello, you can configure the time format manually in the config file keys.dat, the variable name is "timeformat". Just watch out because you have to escape % with %, so it's slightly different than strftime. In your case, just replace

%%I

with

%%H

Unfortunately, as far as I know, there is no way to configure it in the GUI.

Hello, you can configure the time format manually in the config file keys.dat, the variable name is "timeformat". Just watch out because you have to escape % with %, so it's slightly different than strftime. In your case, just replace ``` %%I ``` with ``` %%H ``` Unfortunately, as far as I know, there is no way to configure it in the GUI.
LGD-Fr commented 2016-06-03 15:21:04 +02:00 (Migrated from github.com)

Thanks @PeterSurda, it works.

Thanks @PeterSurda, it works.
bmng-dev commented 2016-06-18 14:00:55 +02:00 (Migrated from github.com)

For the french locale (and others) %p in strftime is empty or a single space. The absence of AM/PM for some locales is correct as 24 hour time is usually the norm and sometimes there is no one-to-one equivalent for "am" or "pm".
The default setting for timeformat during creation of keys.dat should be changed to simply %c for the better supported locale-specific datetime representation. The current default setting is unusual in some locales.

For the french locale (and others) %p in strftime is empty or a single space. The absence of AM/PM for some locales is correct as 24 hour time is usually the norm and sometimes there is no one-to-one equivalent for "am" or "pm". The default setting for timeformat during creation of keys.dat should be changed to simply %c for the better supported locale-specific datetime representation. The current default setting is unusual in some locales.
LGD-Fr commented 2016-06-18 14:25:12 +02:00 (Migrated from github.com)

Thanks @bmng-dev !

Thanks @bmng-dev !
PeterSurda commented 2016-08-14 12:38:28 +02:00 (Migrated from github.com)

I merged your patch, @LGD-Fr .

I merged your patch, @LGD-Fr .
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bitmessage/PyBitmessage-2024-12-22#867
No description provided.