Skip to content

LANG and LC_TIME are ignored #6

@walt-ko

Description

@walt-ko

Hi

rdate ignores localisation settings

correct behaviour of "date":

root@myhost:~# LANG=en_US.UTF-8 LC_TIME=en_US.UTF-8 date
Fri May 26 03:56:07 AM MSK 2023
root@myhost:~# LANG=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 date
Fri 26 May 03:56:15 MSK 2023
root@myhost:~# 

incorrect behaviour of "rdate":

root@myhost:~# LANG=en_US.UTF-8 LC_TIME=en_US.UTF-8 rdate -p timeserver
Fri May 26 03:56:33 MSK 2023
root@myhost:~# LANG=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 rdate -p timeserver
Fri May 26 03:56:44 MSK 2023
root@myhost:~# 

should be fixed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions