mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
utmpupdate: Store the login time in /var/run/utmp as a Unix timestamp
This is obviously nicer and makes it easy for other programs to do what they want with the timestamp.
This commit is contained in:
parent
d531b4fa61
commit
c995166c56
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ int main(int argc, char** argv)
|
|||
entry.set("pid", pid);
|
||||
entry.set("uid", getuid());
|
||||
entry.set("from", from);
|
||||
entry.set("login_at", Core::DateTime::now().to_string());
|
||||
entry.set("login_at", time(nullptr));
|
||||
json.set(tty_name, move(entry));
|
||||
} else {
|
||||
ASSERT(flag_delete);
|
||||
|
|
Loading…
Add table
Reference in a new issue