Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

How can I change date and time locale?

  • 2 trả lời
  • 1 gặp vấn đề này
  • 14 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

toLocaleDateString and toLocaleTimeString return date in "%m/%d/%Y" and "%I:%M:%S %p" formats, while I want them to use "%Y-%m-%d" and "%H:%M:%S" formats. What settings/environment variables should I change?

OS: Mint 19 tara Kernel: x86_64 Linux 4.15.0-20-generic Mozilla Firefox 63.0.3

`/usr/bin/locale' outputs: LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC=ru_RU.UTF-8 LC_TIME=C LC_COLLATE="en_US.UTF-8" LC_MONETARY=ru_RU.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=ru_RU.UTF-8 LC_NAME=ru_RU.UTF-8 LC_ADDRESS=ru_RU.UTF-8 LC_TELEPHONE=ru_RU.UTF-8 LC_MEASUREMENT=ru_RU.UTF-8 LC_IDENTIFICATION=ru_RU.UTF-8 LC_ALL=

toLocaleDateString and toLocaleTimeString return date in "%m/%d/%Y" and "%I:%M:%S %p" formats, while I want them to use "%Y-%m-%d" and "%H:%M:%S" formats. What settings/environment variables should I change? OS: Mint 19 tara Kernel: x86_64 Linux 4.15.0-20-generic Mozilla Firefox 63.0.3 `/usr/bin/locale' outputs: LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC=ru_RU.UTF-8 LC_TIME=C LC_COLLATE="en_US.UTF-8" LC_MONETARY=ru_RU.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=ru_RU.UTF-8 LC_NAME=ru_RU.UTF-8 LC_ADDRESS=ru_RU.UTF-8 LC_TELEPHONE=ru_RU.UTF-8 LC_MEASUREMENT=ru_RU.UTF-8 LC_IDENTIFICATION=ru_RU.UTF-8 LC_ALL=

Tất cả các câu trả lời (2)

more options

I think the time and date is base on you O/S.

more options