Skip to content

Commit

Permalink
make time logging consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
ha0ye committed Jan 24, 2024
1 parent eeb3316 commit b54403d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/logging.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ log_action <- function(action = "", url = "", type = "INFO", loop_num = NULL)
loop_num <- fix_loop_num(loop_num)

my_log <- access_log()
log_row <- data.frame(datetime = format(Sys.time(), "%Y-%m-%d %X %Z"),
log_row <- data.frame(datetime = format(Sys.time(), "%F %T %Z", tz = "America/New_York"),
action = action,
url = url,
type = type,
Expand All @@ -40,7 +40,7 @@ stage_todo <- function(action = "", url = "", loop_num = NULL)
loop_num <- fix_loop_num(loop_num)

my_log <- access_log()
log_row <- data.frame(datetime = format(Sys.time(), "%Y-%m-%d %X %Z"),
log_row <- data.frame(datetime = format(Sys.time(), "%F %T %Z", tz = "America/New_York"),
action = action,
url = url,
loop_num = loop_num)
Expand Down

0 comments on commit b54403d

Please sign in to comment.