File restore dates are hard to understand with some locales

Bug #981776 reported by Dylan McCall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Déjà Dup
Confirmed
Low
Unassigned

Bug Description

When I right click a file and choose to restore a previous version (yay!), Deja Dup offers a list of dates to restore from. This list has dates formatted like the following:

12-04-11
12-04-04
12-03-30

This appears to be one of the date formats according to my selected region (Canada), but the format is also very, very difficult to understand. There is no space limitation here, so there should be nothing stopping the dialog from using a more expressive format (like 11 April 2012).

Revision history for this message
Dylan McCall (dylanmccall) wrote :
Revision history for this message
Michael Terry (mterry) wrote :

I agree. But I don't know a better way to get better date strings.

To get technical with strftime format strings (http://linux.die.net/man/3/strftime), the current method uses "%c". I don't know of a format string that would use the preferred ordering of long-form date/time elements for the locale.

Changed in deja-dup:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Michael Terry (mterry) wrote :

Oh, sorry. When there's only one backup in a given day, Deja Dup uses "%x". When there are multiple backups on the same day, then we use the more verbose "%c".

Revision history for this message
Dylan McCall (dylanmccall) wrote : Re: [Bug 981776] Re: File restore dates are hard to understand with some locales

Ah, I see :)
It's strange: Gnome's language & region panel lists four different date
formats, but indeed I can't find that in the API anywhere, either. I'm
curious about that, so I'll ask a mailing list and let you know what I find.
On Apr 16, 2012 10:55 AM, "Michael Terry" <email address hidden>
wrote:

> Oh, sorry. When there's only one backup in a given day, Deja Dup uses
> "%x". When there are multiple backups on the same day, then we use the
> more verbose "%c".
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/981776
>
> Title:
> File restore dates are hard to understand with some locales
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/deja-dup/+bug/981776/+subscriptions
>

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.