Use same time format for greeter and indicator

Bug #1048873 reported by Anthony M
262
This bug affects 61 people
Affects Status Importance Assigned to Milestone
Greeter
Fix Released
Medium
Unassigned
Wingpanel Date & Time Indicator
Confirmed
Undecided
Unassigned

Bug Description

The clock on the lock screen is displayed in 24 hour format even though I have system settings configured to display in 12 hour format. The clock on the desktop when logged in is correct.

Greeter should uses the time format as described by the locale.
The Indicator currently uses the format as set in the Date & Time Settings in Switchboard.
We should unify these two settings to apply to the locale so all applications can benefit from these settings.

Revision history for this message
Otto Robba (otto-ottorobba) wrote :

And from what I can see from translating it, it is hard set. Different languages show whichever way the translators went with it. In portuguese it is showing 12 hour format, despite my system being set to 24 hour format.

Cody Garver (codygarver)
affects: elementaryos → pantheon-greeter
Changed in pantheon-greeter:
milestone: none → luna-beta2
Revision history for this message
Danielle Foré (danrabbit) wrote : Re: Use same time format as indicator-datetime

Updated the bug report to reflect the technical issue here. What it seems people want (and I agree) is Greeter to use the same format as Wingpanel/DateTime is using. We should be able to get that format from the dconf key for indicator date time.

But this is definitely more of a feature request than a straight up bug fix. So untargetting as a priority for beta2

Changed in pantheon-greeter:
status: New → Confirmed
importance: Undecided → Low
summary: - Lock Screen Clock is in Incorrect Format (24H vs. 12H)
+ Use same time format as indicator-datetime
description: updated
Changed in pantheon-greeter:
importance: Low → Wishlist
milestone: luna-beta2 → none
Revision history for this message
Arturo Torres Sánchez (r2d2.art2005) wrote :

Is com/canonical/indicator/datetime set for the root user? Or will it pick up the value from each user, switching it as it switches backgrounds? I think that would be too confusing.

Revision history for this message
Otto Robba (otto-ottorobba) wrote :

I'm not sure that is as confusing as it might seem - the backgrounds change to reflect the user options, change of time format would just reflect that as well. Changing on a per user basis might not be so bad and is the only viable solution If you think about thin-clients, vpns and other remote access options, It probably would have to be by user since each person would be acessing from a different place/timezone likely with different time formats.

Revision history for this message
Erasmo Marín (erasmo-marin) wrote :

Now, time is displayed in 12 hours format even if system is configured in 24 hours format, I think this requires more attention.

Revision history for this message
Kimmo Siniluoto (robotti) wrote :

This bug affects me also. My system is using 24 hour clock format and Finnish localization. But lockscreen and login screen are using 12 hour clock. This bug affects Luna and Isis.

Cody Garver (codygarver)
Changed in pantheon-greeter:
importance: Wishlist → Medium
milestone: none → freya-beta2
Cody Garver (codygarver)
Changed in pantheon-greeter:
milestone: freya-beta2 → freya-beta3
Revision history for this message
Alexander Alsing (aalsing) wrote :

I've have found a way to get the 24 hour clock in wingpanel.

goto dconf-editor:

com > indicator > datetime

In the bottom there is a section called " time-format", change this to 24-hours.

Revision history for this message
Cody Garver (codygarver) wrote :

There were some changes in lp:~elementary-os/elementaryos/os-patch-indicator-datetime-trusty that may have solved this bug, we need a new report from a FRESH install of Freya

Changed in pantheon-greeter:
status: Confirmed → Incomplete
Cody Garver (codygarver)
Changed in pantheon-greeter:
milestone: freya-rc1 → loki-beta1
Revision history for this message
Alex Viscreanu (alexviscreanu) wrote :

Fresh install of Freya with the stable .iso . The bug stills. My system language is set to Spanish and the clock at the wingpanel is 24h format but on the greeter is like 12h format without indicating AM or PM.

Revision history for this message
Coeur Noir (coeur-noir) wrote :

Fresh install of stable Freya.

Language in system settings is French.

On greeter date is displayed in english format AND the whole greeter is in English language.

Once logged in, system is actually in French, date-time indicator in the french date-format.

(many translations are missing for the moment, here and there)

Important note I guess : on first boot after installing the system, greeter was in French, language and correct date-format !

Revision history for this message
Renato Pereira (rptellme) wrote :

Same thing here using Freya 0.3.1.
Wingpanel shows 24 hour format but greeter reports 12 hour format with no indication of either AM or PM.
System Locale is to Portuguese.

ProsjektX (prosjektx)
tags: added: internationalization
Revision history for this message
Maxim Taranov (png2378) wrote :

When using the new wingpanel-indicator-datatime we can not choose time format in system settings, it's taken from translation according to the current locale. Now in Greeter same method. I think this bug is invalid.

Maxim Taranov (png2378)
Changed in pantheon-greeter:
status: Incomplete → Invalid
Maxim Taranov (png2378)
Changed in pantheon-greeter:
status: Invalid → Incomplete
tags: removed: internationalization
Revision history for this message
Jiri Grönroos (jiri-gronroos) wrote : Re: Use same time format as indicator-datetime

Fresh Freya 0.3.2 installation and this bug is still present.

1. I chose Finnish during the installation.
2. Greeter presents time in English format (am/pm, month name in English) after installation.
3. Had to install language-pack-fi and language-pack-fi-base after installation to get correct locales (date, currency etc.) since elementaryOS does not ship these by default for some reason.
4. After reboot Greeter shows TimeLabel in English but format is now defined by locale OR by po file strftime format (in Finnish adds a point after day and "-ta" suffix to month name (becomes Decemberta) http://bazaar.launchpad.net/~elementary-pantheon/pantheon-greeter/trunk/view/head:/po/fi.po#L62)

Revision history for this message
Jiri Grönroos (jiri-gronroos) wrote :

For those affected: Install language-selector-gnome and try to set your locale that way. Greeter's time format was fixed this way, and now I'm able to write using Finnish keyboard layout! So this might not be Greeter bug, it could be that elementary OS's locale plug doesn't do its magic very well.

Changed in pantheon-greeter:
milestone: loki-beta1 → none
Revision history for this message
Dionysius (dionysius) wrote :

Please don't remove the milestone.

Anyway I found something little: If you have multiple users with different backgrounds, the loginscreen changes to their background when switching between them. So there is a place where the loginscreen can access user defined information, why not the date format?

Revision history for this message
Fabian Thoma (fabianthoma) wrote :

The Greeter in Loki builds now uses the System Locale Formats, which can be set in the Language and Locale Settings in Switchboard. Only thing here is they have to be set with Admin Permissions, because they change it for the system level.
I can confim that the Panel once logged in does not follow that same setting, it follows the Date and Time settings 24 hour setting. So we probably should be implementing this in a consistent way as well.

Revision history for this message
Fabian Thoma (fabianthoma) wrote :
Changed in pantheon-greeter:
status: Incomplete → Fix Committed
milestone: none → loki+1-beta1
milestone: loki+1-beta1 → loki-beta1
summary: - Use same time format as indicator-datetime
+ Use same time format for greeter and indicator
description: updated
Changed in wingpanel-indicator-datetime:
status: New → Confirmed
Cody Garver (codygarver)
Changed in pantheon-greeter:
milestone: loki-beta1 → 3.0
status: Fix Committed → Fix Released
Revision history for this message
Daan Potter (dhapotter) wrote :

When will this be implemented, Loki stable still gives me AM/PM.

Revision history for this message
Zisu Andrei (matzipan) wrote :

I can confirm. In switchboard, time is selected as 24h, and the Greeter is AM/PM.

Revision history for this message
Zisu Andrei (matzipan) wrote :

Ok, so apparently the Greeter fix ignores what you set in the Date/Time switchboard plug and uses the format from the language file, whereas the indicator uses what you set in the Date/Time switchboard plug.

Revision history for this message
Damir Dulic (ddulic) wrote :

Same bug here. Still persistent in latest Loki release. Format is United Kingdom and lockscreen is AM/PM.

Revision history for this message
Vishal Rao (vishalrao) wrote :

Working on it at the moment, see https://github.com/elementary/greeter/pull/53

Revision history for this message
Dionysius (dionysius) wrote :

@vishalrao Thank you for your effort! I like your approach showing the format based on selected user. This makes the login screen multi locale friendly and would be a nice addition in a multicultural environment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.