mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +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
Notes:
sideshowbarker
2024-07-17 20:06:52 +09:00
Author: https://github.com/trflynn89
Commit: 0c13a3a8ff
Pull-request: https://github.com/SerenityOS/serenity/pull/12171
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