Skip to content

ui: Follow user_settings.twenty_four_hour_time #1015

@chrisbobbe

Description

@chrisbobbe

When we show timestamps, for example on messages in the message list, we should format them according to the user's setting:

  • user_settings.twenty_four_hour_time true: "13:52"
  • user_settings.twenty_four_hour_time false: "1:52 PM"

This is something we did in the zulip-mobile legacy app.

In addition to the timestamps on messages in the message list (which is the most visible and most important place), this should apply to everywhere else that we show a time of day to the user. To find other such places, try git grep DateFormat.

References

  • Help center doc
  • UserSettings.twentyFourHourTime in lib/api/model/initial_snapshot.dart
  • UserSettingsUpdateEvent in lib/api/model/events.dart

Metadata

Metadata

Assignees

Labels

a-msglistThe message-list screen, except what's label:a-contentlaunch feedbackThings users specifically asked for upon launch

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions