connectapi icon indicating copy to clipboard operation
connectapi copied to clipboard

`coerce_datetime` losing time part of `get_audit_logs`

Open minemR opened this issue 9 months ago • 0 comments

When using get_audit_logs we are losing precision of time.

Trying to pinpoint the location where it is happening I stumbled on coerce_datetime.

reprex:

z <- connectapi:::coerce_datetime('2023-07-07T16:14:49+03:00', structure(NA_real_, class = c("POSIXct", "POSIXt"), tzone = "UTC"), 'time')
z
# [1] "2023-07-07 UTC"
format(z, '%d/%b/%Y:%H:%M:%S')
# [1] "07/Jul/2023:00:00:00"

minemR avatar May 02 '24 14:05 minemR