搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can I change date and time locale?

  • 2 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 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=

所有回复 (2)

more options

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

more options