Author Topic: How to change the time format displayed in Chat Conversation?  (Read 6488 times)

0 Members and 1 Guest are viewing this topic.

yaseer_jaffar

  • Sr. Member
  • ****
  • Posts: 25
I am using Mibew v2.0
My current time format is 24 hours format in the chat conversation. I want to make it as 12-hours format.

Please help me. Thanks in advance.

Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: How to change the time format displayed in Chat Conversation?
« Reply #1 on: June 22, 2015, 08:53:46 AM »
Several formats related changes will be introduced in Mibew 2.1.0. At the same time if the format you are talking about will not become changable in v2.1.0 the only option is to patch the core.

yaseer_jaffar

  • Sr. Member
  • ****
  • Posts: 25
Re: How to change the time format displayed in Chat Conversation?
« Reply #2 on: June 22, 2015, 08:55:22 AM »
Can you please explain me how to patch the core?

Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: How to change the time format displayed in Chat Conversation?
« Reply #3 on: June 22, 2015, 09:03:22 AM »
I want to notice you that you have to be a developer to patch the core. If you don't have enough programming skills ask someone who has.

Here is the process:

1. Clone Mibew's repository: https://github.com/Mibew/mibew
2. Do whatever changes you want to.
3. Build Mibew (see http://docs.mibew.org/development/build-system.html for details).
4. Install your patched version and use it at your own risk.

yaseer_jaffar

  • Sr. Member
  • ****
  • Posts: 25
Re: How to change the time format displayed in Chat Conversation?
« Reply #4 on: June 22, 2015, 09:11:32 AM »
Yes, Dmitriy Simushev. I am a developer. I know about how to patch the core. My question is which file and which line need to be changed to change the time format.

Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: How to change the time format displayed in Chat Conversation?
« Reply #5 on: June 22, 2015, 09:24:32 AM »
If you're a developer you can find it out by yourself. Just kidding  ;D

Take a look at https://github.com/Mibew/mibew/blob/master/src/mibew/js/source/default/handlebars_helpers.js#L27. Hope it helps.

yaseer_jaffar

  • Sr. Member
  • ****
  • Posts: 25
Re: How to change the time format displayed in Chat Conversation?
« Reply #6 on: June 22, 2015, 09:26:36 AM »
Thank you very much, Dmitriy Simushev. It solves my problem.  :)