Converting System Log CSV Export Timestamps in Okta to a Specific Timezone
Last Updated:
Overview
A System Log Comma-Separated Values (CSV) export uses Zulu Time timestamps in the YYYY-MM-DDTHH:MM:ss.sssZ format. Spreadsheet formulas convert those timestamps to a preferred local timezone after the export is downloaded and opened in a spreadsheet application.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- System Log
- CSV Export
Cause
A System Log CSV export uses Zulu Time timestamps, so the exported values do not match a preferred local timezone until a spreadsheet formula applies the required offset.
Solution
How are System Log CSV export timestamps converted to a specific timezone?
Convert the exported timestamp values in a spreadsheet application to display the preferred timezone.
- Download the CSV file from the System Logs.
- Import the file into Microsoft Excel or Google Sheets.
- Create a new column, for example
timestamp_local, in the file. - Enter this formula to convert the time to the desired timezone:
=(DATEVALUE(LEFT(F2,10))+TIMEVALUE(MID(F2,12,12)))+TIME(8,0,0)
NOTE: Modify these formula elements to match the required timezone conversion:
- Replace
F2to reflect the actual timestamp column. - Replace
+to reflect whether the offset is positive or negative. For example, GMT+8 uses a plus sign (+), and GMT-8 uses a minus sign (-). - Replace
8with the specific time offset. For example, GMT+8 uses 8, and GMT+11 uses 11.
