Incorrect time format #379

Closed
opened 2026-02-04 18:55:35 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @eternity1984 on GitHub (Nov 11, 2023).

If the locale is Japan, Incorrect datetimes are displayed for activities, due dates, etc.
The minute format should be 'mm', but 'MM' is set.

image

To fix it, make the following changes:

   format: {
     date: 'yyyy/M/d',
     time: 'HH:mm',
     dateTime: '$t(format:date) $t(format:time)',
     longDate: 'MMMMd日',
-    longDateTime: "MMMMd'日 ' HH:MM",
+    longDateTime: "MMMMd'日 ' HH:mm",
   },

Ref: planka/client/src/locales/ja/core.js

It's a small fix, but can I submit a pull request?

Originally created by @eternity1984 on GitHub (Nov 11, 2023). If the locale is Japan, Incorrect datetimes are displayed for activities, due dates, etc. The minute format should be 'mm', but 'MM' is set. <img width="509" alt="image" src="https://github.com/plankanban/planka/assets/34591767/f254329c-3fd2-40e0-b17d-d236d9b5206c"> To fix it, make the following changes: ```diff format: { date: 'yyyy/M/d', time: 'HH:mm', dateTime: '$t(format:date) $t(format:time)', longDate: 'MMMMd日', - longDateTime: "MMMMd'日 ' HH:MM", + longDateTime: "MMMMd'日 ' HH:mm", }, ``` Ref: [planka/client/src/locales/ja/core.js](https://github.com/plankanban/planka/blob/019766dced3df4636a07a541b9d045f953361034/client/src/locales/ja/core.js#L11) It's a small fix, but can I submit a pull request?
Author
Owner

@meltyshev commented on GitHub (Nov 13, 2023):

Hi! Thanks for reporting this.

It's a small fix, but can I submit a pull request?

Sure, PRs are very welcome regardless of their size. If you need any help with it, feel free to ask.

@meltyshev commented on GitHub (Nov 13, 2023): Hi! Thanks for reporting this. > It's a small fix, but can I submit a pull request? Sure, PRs are very welcome regardless of their size. If you need any help with it, feel free to ask.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#379