Răsfoiți Sursa

Fix time format to show seconds instead of month

JC Brand 8 ani în urmă
părinte
comite
a4be25e05c
3 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 2 2
      docs/source/configuration.rst
  2. 3 2
      src/converse-chatview.js
  3. 0 1
      src/converse-core.js

+ 2 - 2
docs/source/configuration.rst

@@ -1085,9 +1085,9 @@ If set to ``a resource name``, converse.js will synchronize only with a client t
 time_format
 -----------
 
-* Default: ``HH:MM``
+* Default: ``HH:mm``
 
-Examples: ``HH:MM``, ``hh:mm``, ``hh:mm a``.
+Examples: ``HH:mm``, ``hh:mm``, ``hh:mm a``.
 
 This option makes the time format for the time shown, for each message, configurable. Converse uses `moment.js <https://momentjs.com/>`_
 for showing time. This option allows the configuration of the format in which `moment` will display the time for the messages. For detailed

+ 3 - 2
src/converse-chatview.js

@@ -72,9 +72,10 @@
                 __ = _converse.__;
 
             this.updateSettings({
-                show_toolbar: true,
-                chatview_avatar_width: 32,
                 chatview_avatar_height: 32,
+                chatview_avatar_width: 32,
+                show_toolbar: true,
+                time_format: 'HH:mm',
                 visible_toolbar_buttons: {
                     'emoticons': true,
                     'call': false,

+ 0 - 1
src/converse-core.js

@@ -268,7 +268,6 @@
             whitelisted_plugins: [],
             xhr_custom_status: false,
             xhr_custom_status_url: '',
-            time_format: 'HH:MM',
             show_send_button: false
         };
         _.assignIn(this, this.default_settings);