Skip to content

Commit

Permalink
Use RTime.today() instead of time() in two leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Feb 18, 2024
1 parent 7a769bc commit 81d9375
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libr/core/cmd_debug.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion libr/main/r2pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 81d9375

Please sign in to comment.