I'm using Ubuntu 18.04 x64 on VPS, I never used it before.
I created huge nodejs script with
- new Date().toLocaleTimeString() and new Date().toLocaleDateString
commends, on Windows 10 everything works great, but on Ubuntu because of 12 hour format my nodejs script is in total mess.
I want to change ubuntu settings instead of changing nodejs script.
I'm from Poland and I'm using 24 hour format. I already changed something :D with console command, my time in ubuntu terminal looks like this:
root@node:~# date
Thu Nov 29 16:18:24 CET 2018
root@node:~# sudo timedatectl
Local time: Thu 2018-11-29 16:31:15 CET
Universal time: Thu 2018-11-29 15:31:15 UTC
RTC time: Thu 2018-11-29 15:31:16
Time zone: Europe/Warsaw (CET, +0100)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
but in nodejs console I see:
[4:02:20 PM]
on Windows:
[2018-11-29][14:55:01]
on Ubuntu
[11/29/2018][4:00:33 PM]
Because of symbol '/' in date on Ubuntu my script can't create new .txt files with date
Please help me :D Thank you & Greetings