Skip to content

Time format option #3679

Description

@MagsMagnoli

Description:

A setting for 24 hour time format exists on the desktop but not the client apps.

  1. Expose the option in the profile settings
  2. Sync the setting between mobile and desktop apps

Environment Information:

  • Rocket.Chat Server Version: 4.4
  • Rocket.Chat App Version: 4.24.0.28002
  • Device Name: Android
  • OS Version: 12

Steps to reproduce:

  1. Desktop app: Update time format in profile settings
  2. Switch to mobile app, view that messages are still in 12 hour format
  3. View that there is no option to switch time format in the app

Expected behavior:

Time is shown in 24 hour format

Actual behavior:

Time is shown in 12 hour format

Additional context:

Tried logging out then back in to the app and that didn't work

Activity

  1. changed the title [-]Add 24 hour time format[/-] [+]Add time format option[/+] on Feb 1, 2022
  2. changed the title [-]Add time format option[/-] [+]Time format option[/+] on Feb 1, 2022
  3. try-catch-stack commented on Feb 3, 2022

    @try-catch-stack
    Contributor

    Hey @diegolmello
    I am implementing this feature and needed your suggestion on the usage of UserPreference endpoint or basically the function defined in rocketchat.js to get the preferences of user. I mean which is the best place to call this function to sync with the web and store Time format in the local state.
    In my current implementation , I used it in the RoomListView . What do you think?

  4. diegolmello commented on Feb 3, 2022

    @diegolmello
    Member

    @try-catch-stack You'll need to save the preference on our local db.

    It's very similar to what we do for 'show_message_in_main_thread' and you should use it as example.

    We have a couple of custom hooks on web that will help you:

    On mobile repo, you can find settings on Redux and, after you add clockMode, you'll find it on login.user reducer.

  5. iihimanshuu commented on Mar 5, 2025

    @iihimanshuu

    Please assign this issue to me !!

  6. Rohit3523 commented on Mar 5, 2025

    @Rohit3523
    Contributor

    Here you won't get assigned to any issue, If you can fix any issue just open an pull request and attach the issue in PR :)

  7. iihimanshuu commented on Mar 5, 2025

    @iihimanshuu

    oh alright

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions