thingsboard / thingsboard

Open-source IoT Platform - Device management, data collection, processing and visualization.
https://thingsboard.io
Apache License 2.0
17.56k stars 5.19k forks source link

[Question] Is there a way to localize the date? #9895

Open h-takado opened 10 months ago

h-takado commented 10 months ago

Hello.

In the "Edit TimeWindow", the date is set to "dd/mm/yyyy", but can it be changed to "yyyy/mm/dd"? In Asia, "yyyy/mm/dd" is used, not "dd/mm/yyyy".

In the case of Windows and other operating systems, if there is a change of country, such as US->Japan, the format will change from "dd/mm/yyyyy" to "yyyy/mm/dd", In the case of TB PE, it does not change even if it is set to "Japanese" in the Account Profile.

Also, the calendar months that pop up are in English, like Jan, Feb, Mar,,,. I would like to translate this as well, but there does not seem to be an entry in Custom Transration in While Labeling.

Is there any way to localize the date in TimeWindow?

無題1

cogic commented 10 months ago

https://github.com/thingsboard/thingsboard/blob/master/ui-ngx/src/app/shared/shared.module.ts I modified line 246 of this file to do this

h-takado commented 10 months ago

Thanks for your response. I am using TB PE now, will this be reflected in the update to the latest PE?

xalt7x commented 9 months ago

Related issues: