Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_audit_logs breaks time #290

Closed
minemR opened this issue Aug 27, 2024 · 7 comments · Fixed by #291
Closed

get_audit_logs breaks time #290

minemR opened this issue Aug 27, 2024 · 7 comments · Fixed by #291

Comments

@minemR
Copy link

minemR commented Aug 27, 2024

It seems that date time format has changed for audit logs and now time column is empty aka NA

problematic line:

as.POSIXct(strptime(x, format = "%Y-%m-%dT%H:%M:%SZ"), tz = tzone(to))

example:

as.POSIXct(strptime('2023-08-22T14:13:14+03:00', format = "%Y-%m-%dT%H:%M:%SZ"))
@minemR
Copy link
Author

minemR commented Aug 27, 2024

#270

@toph-allen
Copy link
Collaborator

@minemR What version of Connect are you using?

@minemR
Copy link
Author

minemR commented Aug 28, 2024

Posit Connect 2024.08.0

@aronatkins
Copy link
Contributor

@minemR - Do you happen to know the if the server running Connect is configured to use a specific locale timezone or does it use UTC? We are pursuing a theory that Connect timestamps have a different format depending on the timezone of the server.

@minemR
Copy link
Author

minemR commented Aug 28, 2024

running locale gives:

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=C.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

does this answer your question?

@aronatkins
Copy link
Contributor

@minemR - what does date show on the Connect server?

@minemR
Copy link
Author

minemR commented Aug 29, 2024

Thu Aug 29 08:55:02 EEST 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants