Why Are Timestamps In Excel CSVs Offset By Ten Hours?
Summary
This guide helps you troubleshoot and resolve: Why Are Timestamps In Excel CSVs Offset By Ten Hours?. Follow the steps below to fix the issue.
Common Causes
When you open a CSV file containing timestamps in Microsoft Excel, you may notice the dates and times are shifted. This is a common issue for Australian businesses because cloud applications typically store data in Coordinated Universal Time (UTC). Australian Eastern Standard Time (AEST) is UTC+10, while Australian Eastern Daylight Time (AEDT) is UTC+11. Excel does not automatically convert UTC timestamps to your local time zone when you open a CSV directly; it displays the values as stored in the file.
Quick Fix Steps
- Open the CSV file in a plain text editor such as Notepad to verify if the timestamps are already offset before opening them in Excel.
- Check your Windows Date & Time settings to ensure your time zone is set correctly for your Australian location.
- Try importing the CSV using the Data tab rather than double-clicking the file to open it directly.
- If the offset is exactly ten hours (or eleven hours during daylight saving), the source application is likely providing data in UTC, and you will need to apply a formula or transformation to convert the time to your local zone.
Detailed Instructions
Diagnosing the Source of the Offset
Before changing settings, determine where the time shift is occurring.
- Right-click the
.csvfile in File Explorer. - Select Open with and choose Notepad.
- Review the timestamp column. If the time already appears shifted by ten hours (or eleven during daylight saving) in Notepad, the issue originates from the cloud application exporting the data in UTC.
- If the time is correct in Notepad but shifts once opened in Excel, the issue is related to Excel's import logic or your system's regional settings.
- If timestamps appear correct locally but are wrong when shared with users in other time zones or when re-imported, this is a timezone display versus stored value issue.
Checking Windows Regional Settings
Excel relies on your operating system's regional settings to interpret date and time formats.
- Click the Start button and select Settings.
- Navigate to Time & language > Date & time.
- Ensure the Time zone dropdown is set to the correct Australian zone (e.g.,
(UTC+10:00) Canberra, Melbourne, Sydney). - Click Additional date, time, & regional settings to open the Control Panel.
- Select Region and verify that the Formats tab is set to an English (Australia) option.
- Restart Microsoft Excel for changes to take effect.
Importing CSVs Correctly in Excel
Double-clicking a CSV often forces Excel to guess the data format, which can lead to incorrect timestamp handling. Using the import wizard provides more control.
- Open a blank workbook in Microsoft Excel.
- Go to the Data tab on the ribbon.
- Click Get Data > From File > From Text/CSV.
- Select your
.csvfile and click Import. - In the preview window, click Transform Data to open Power Query.
- Locate the timestamp column, right-click the header, and select Change Type > Date/Time.
- To adjust for time zone, add a custom column with a static offset formula. For example:
DateTime.AddHours([YourColumnName], 10)(replace[YourColumnName]with your actual column name). During Australian daylight saving time, change the formula toDateTime.AddHours([YourColumnName], 11). - Click Close & Load to import the data into your spreadsheet.
Converting UTC to Local Time
If the source application provides data in UTC, you can use a simple Excel formula to adjust for the time difference.
- Assuming your UTC timestamp is in cell
A2, enter the following formula in an adjacent cell: =A2 + TIME(10, 0, 0)- Press
Enterto apply the ten-hour offset. - Drag the fill handle down to apply the formula to the rest of the column.
- Right-click the resulting cells, select Format Cells, and choose your preferred Date or Time format.
TIME(11, 0, 0) during Australian daylight saving periods.Troubleshooting
- Timestamps still incorrect after regional changes: The source cloud application is likely exporting data in UTC. Contact the application vendor to see if they offer a local time export option.
- Dates appear as numbers (e.g., 45000): The cells are formatted as General. Select the column, go to the Home tab, and change the format to Short Date or Long Date.
- CSV opens with missing data: This may indicate a delimiter issue. Ensure your system's list separator is set to a comma in the Windows Region settings.
- Issue occurs on multiple workstations: This confirms the problem is with the source data rather than local PC settings.
- Timestamps correct locally but wrong for other users or upon re-import: This indicates a difference between how the time is displayed locally versus how it is stored in the UTC value of the file.
If you have verified your local settings and the timestamps remain incorrect, the issue likely resides within the cloud application's export logic. Contact your application vendor's support team for further assistance. If the vendor cannot resolve the issue, you can Open a Ticket for internal escalation.
Still Having Issues?
💻 Open a Ticket