0

My XFCE shows correct time:

XFCE4 date

But when running date command it defaults to 12h format?

date from command line

already tried solution from this and this question but still the same, I'm using en_CA.UTF-8 btw.

Kokizzu
  • 499
  • Are you sure it's the format that is incorrect? if it was really 12h format, I'd expect an AM/PM indicator. What does echo $TZ say? what do you get if you set the TZ explicitly ex. TZ='Asia/Jakarta' date ? – steeldriver Jun 19 '20 at 15:03
  • @steeldriver yes, it is 12h format, since if it was 24h format, it should be 21:51 not 09:51 – Kokizzu Jun 19 '20 at 19:24
  • @steeldriver echo $TZ is empty, when TZ='Asia/Jakarta' date it shows the same as date – Kokizzu Jul 14 '20 at 17:17

1 Answers1

1

you might be lucky after reading about the LC_ variables , timedatectl and:

  • 1
    can't check for now, since it's already 02:00 '__') will check in 10+ hours – Kokizzu Jun 19 '20 at 19:24
  • 1
    aww , nice problem "cannot be checked everytime" -> you can just set your time manually and then use ntpdate or ntpdate-debian https://askubuntu.com/questions/679988/how-to-change-ubuntus-server-date-and-time-via-command-line – Benji over_9000 'benchonaut' Jun 19 '20 at 19:28