Replacement of custom date formatting solution #22
Replies: 1 comment
-
UPDATE Anyone that has been observing the Prefer Locale Format By default, this option will be checked. Basically this checkbox forces the extension to set the date format to your country's preferred format. For example, users in Japan will see Date Format The items have not changed from the original but I did include a new option for Custom Date/Time Format As the name implies, you can set a custom format if you like. You must set the If there is anything you want me to add or consider in the design. Leave them in the comments below. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, as of today, I am in the process of replacing the custom solution used to format dates. Since version 1.1.0, I've written my own framework to format the dates. While this has worked really well for 2 years, the problem is that it can't be used on a global scale where different countries have different date formats. For example, users in Japan don't follow the same date format used in the United States (MM/DD/YYYY). Users there should be expecting this date format 2022年01月02日. However, the extension follows western date format and localization. In fact, the month names are hardcoded in the framework which doesn't apply to users in Japan.
To standardize date formatting, I will be using a popular JavaScript library known as Moment.js. This is something I'm familiar with. Documentation is quite detailed and very flexible to use, making it the perfect replacement.
Changes to Expect
Right now, I don't have the exact details as to what is going to change but I will update this list as development is ongoing.
Beta Was this translation helpful? Give feedback.
All reactions