Giter Site home page Giter Site logo

Comments (5)

andreypopov avatar andreypopov commented on July 26, 2024 1

It uses your locale settings

new Date().toLocaleDateString()
new Date().toLocaleTimeString()

from node-red-contrib-zigbee2mqtt.

clmcavaney avatar clmcavaney commented on July 26, 2024

Cool - thanks - I will look at passing some parameters in my docker-compose.yml
I'm thinking something like this:

      environment:
        - LANG=en_AU.UTF-8
        - LANGUAGE=en_AU:en
        - LC_ALL=en_AU.UTF-8

from node-red-contrib-zigbee2mqtt.

andreypopov avatar andreypopov commented on July 26, 2024

It depends on your browser settings!
chrome://settings/languages

to check your current locale: Intl.NumberFormat().resolvedOptions().locale

https://developer.chrome.com/docs/extensions/reference/i18n/#how-to-set-browsers-locale

from node-red-contrib-zigbee2mqtt.

clmcavaney avatar clmcavaney commented on July 26, 2024

I used the docker-compose.yml environment settings above and it worked.

I had setup language settings within browser and the operating system a long time ago - but that didn't appear to change the view on node-red.

Thanks @andreypopov for the info.

from node-red-contrib-zigbee2mqtt.

S474N avatar S474N commented on July 26, 2024

I have the Czech language set in Chrome browser and even then it shows me a strange date and time format (12h - AM/PM). What to choose the date and time display format?

image

from node-red-contrib-zigbee2mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.