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

Add timezone when exporting CSV #232

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

rasendubi
Copy link

Exported CSV file is missing timezone information, so it's hard to make sense of the data unless you know the exact timezone it was exported with.

This PR changes timestamp format to ISO8601/RFC3339, so it should be parseable by virtually any tool. (Unfortunately XXX requires API level 24 but I assume that's fine.)

@Razeeman
Copy link
Owner

Hello! Thank you very much for the suggestion. Can you please explain a little bit your use case? What problems are caused by not having a timezone there? I'd assumed that most users open exported file in the same timezone which is was exported in.

@rasendubi
Copy link
Author

Can you please explain a little bit your use case?

My use case is exporting all records from STT to archive and analyze them later.

What problems are caused by not having a timezone there? I'd assumed that most users open exported file in the same timezone which is was exported in.

The problem is that this requires out-of-band knowledge of what timezone the records were exported in. While your assumption is correct for most users most of the time, it's not correct for all users all the time:

  • Users might be traveling and changing timezones.
  • Some countries observe daylight saving time, so in a month a lot of users' timezones will change.
  • I might transfer and process my records on another machine with different timezone.

Overall, timezone-less timestamps are just ambiguous, not suitable for long-term storage, and complicate processing.

@Razeeman
Copy link
Owner

Thank you for the explanation. Makes sense. Unfortunately it seems that neither macos Numbers app or Google sheets don't recognize this format as a datetime format and show it as a simple text. This may break some people usecases. As an alternative time zone can be added as another column with the text like "GMT+7:00". Will it resolve the issue?

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 this pull request may close these issues.

2 participants