Connect API Dates and Timezones

Hi, I have been using the connect API to download usage logs, when I noticed an odd discrepancy in the time formats. The shiny usage returned by instrumentation/shiny/usage returns started in local time, but ended in UTC. Content usage from instrumentation/content/visits is similarly returning UTC for time. Is there something in the underlying data that is causing these calls to have differing timezones?

resp <- GET(paste0(connectServer, "__api__/v1/instrumentation/shiny/usage?limit=100&min_data_version=0"),
  add_headers(Authorization = paste("Key", apiKey)))

                    started                ended
1 2018-11-20T00:12:53-05:00 2018-11-20T05:16:28Z

resp <- GET(paste0(connectServer, "__api__/v1/instrumentation/content/visits?limit=100&min_data_version=0"),
  add_headers(Authorization = paste("Key", apiKey)))

> content_usage$time[1]
[1] 2018-11-20T04:44:44Z
1 Like

Hi, there. Thanks so much for reporting this. We've taken it on as a bug and it will be fixed in the next release of RStudio Connect (1.7.2).

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.