mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03: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: https://github.com/SerenityOS/serenity/commit/0c13a3a8ff0 Pull-request: https://github.com/SerenityOS/serenity/pull/12171
@ -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…
Reference in New Issue
Block a user