mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
ls: Display times in the user's local time zone
ls is already using local time, but needs tzset() for that to actually work.
This commit is contained in:
parent
da2eb63652
commit
0c13a3a8ff
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ static bool is_a_tty = false;
|
|||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
TRY(Core::System::pledge("stdio rpath tty"));
|
||||
tzset();
|
||||
|
||||
struct winsize ws;
|
||||
int rc = ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue