Page MenuHomePhabricator

Use user's time format preference when formatting times for the date/time picker
Closed, ResolvedPublic

Description

I know there's a possibility to change how a user wants to see dates/times rendered. However, I've not yet managed to find a way to set the format for the time picker.

Here's how the custom field looks now:

picker.png (128×494 px, 10 KB)

However, I want to be able to enter, for example, 23:00 instead of 11:00 PM.

Is it possible already? If not, would it be something you consider implementing? I'm sure other users would benefit from this as well, not least because it is more compatible with ISO 8601.

As a side note: it would also be nice to be able to select from a dropdown list of hours: "11:00, 12:00, ..." instead of having to type every time. If it makes sense (and not yet implemented), I could create a separate task for that.

Event Timeline

naktinis raised the priority of this task from to Needs Triage.
naktinis updated the task description. (Show Details)
naktinis added a project: Custom Fields.
naktinis added a subscriber: naktinis.

When you enter "23:00", what does it do? What did you expect it to do?

OK, it does appear to save the correct time. I'm pretty sure it did not use to work in a bit earlier version (like a week ago) of Phabricator where it would just disable the field as if no datetime was entered (or was it some configuration I've changed in my recent installation) – sorry about the confusion.

However, there is still the issue that it is shown as "11:00 PM" once I open the task to edit the time.

This is possibly tricky because the user can enter some unparsable time format in their preferences, but we can assume that users mostly enter reasonable time formats until we have evidence to the contrary.

epriestley renamed this task from Allow changing time picker format to Use user's time format preference when formatting times for the date/time picker.Apr 23 2015, 1:18 PM
btrahan triaged this task as Wishlist priority.Apr 23 2015, 5:35 PM
btrahan added a subscriber: btrahan.
aHa claimed this task.