TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What timezone should I use?

1 pointsby andrejewskialmost 13 years ago
The application I am building projects the time on which data is submitted and I would prefer the time to be stored in a unified timezone, calculated for the user and sent based on their timezone. I have all of this worked out, but I would like to pick the best timezone to store the data in. I was thinking Greenwich, but is there a better option? I am in EST, right now.

1 comment

PythonDeveloperalmost 13 years ago
You want to use UTC and convert it to your local timezone using functionality provided in most of todays languages.<p>For example, in PHP, you could use gmdate('Y-m-d H:i:s') to get the current time/date in UTC.<p>In Python, you could use datetime.datetime.utcnow().