From 81d9375cbd3f36f2d8c355418d22365e1ead396a Mon Sep 17 00:00:00 2001 From: pancake Date: Sun, 18 Feb 2024 12:33:22 +0100 Subject: [PATCH] Use RTime.today() instead of time() in two leftovers --- libr/core/cmd_debug.inc.c | 2 +- libr/main/r2pm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libr/core/cmd_debug.inc.c b/libr/core/cmd_debug.inc.c index 67d1c4dd85895..6214e733cb8e4 100644 --- a/libr/core/cmd_debug.inc.c +++ b/libr/core/cmd_debug.inc.c @@ -5398,7 +5398,7 @@ static int cmd_debug(void *data, const char *input) { int beats = r_time_beats (r_time_now (), &sub_beats); r_cons_printf ("@%03d.%d\n", beats, sub_beats); } else { - char *nostr = r_time_secs_tostring (time (0)); + char *nostr = r_time_secs_tostring (r_time_today ()); r_cons_println (nostr); free (nostr); } diff --git a/libr/main/r2pm.c b/libr/main/r2pm.c index c8688aae265a2..b9129977c70b4 100644 --- a/libr/main/r2pm.c +++ b/libr/main/r2pm.c @@ -146,7 +146,7 @@ static void r2pm_register(const char *pkg, bool g) { if (f) { RStrBuf *sb = r_strbuf_new (""); r_strbuf_appendf (sb, "Global: %s\n", r_str_bool (g)); - char *s = r_time_secs_tostring (time (0)); + char *s = r_time_secs_tostring (r_time_today ()); r_strbuf_appendf (sb, "InstallationDate: %s\n", s); free (s); char *ss = r_strbuf_drain (sb);