Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 34183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:02:18+00:00 2026-05-10T14:02:18+00:00

Store everything in GMT? Store everything the way it was entered with an embedded

  • 0

Store everything in GMT?

Store everything the way it was entered with an embedded offset?

Do the math everytime you render?

Display relative Times ‘1 minutes ago’?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:02:18+00:00Added an answer on May 10, 2026 at 2:02 pm

    You have to store in UTC – if you don’t, your historic reporting and behaviour during things like Daylight Savings goes… funny. GMT is a local time, subject to Daylight Savings relative to UTC (which is not).

    Presentation to users in different time-zones can be a real bastard if you’re storing local time. It’s easy to adjust to local if your raw data is in UTC – just add your user’s offset and you’re done!

    Joel talked about this in one of the podcasts (in a round-about way) – he said to store your data in the highest resolution possible (search for ‘fidelity’), because you can always munge it when it goes out again. That’s why I say store it as UTC, as local time you need to adjust for anyone who’s not in that timezone, and that’s a lot of hard work. And you need to store whether, for example, daylight savings was in effect when you stored the time. Yuk.

    Often in databases in the past I’ve stored two – UTC for sorting, local time for display. That way neither the user nor the computer get confused.

    Now, as to display: Sure, you can do the ‘3 minutes ago’ thing, but only if you store UTC – otherwise, data entered in different timezones is going to do things like display as ‘-4 hours ago’, which will freak people out. If you’re going to display an actual time, people love to have it in their local time – and if data’s being entered in multiple timezones you can only do that with ease if you’re storing UTC.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Imagine I store everything on the server according to the server's date. However, when
In my first GWT module I want to store a JavaScript object, later on
I am trying to use a custom ITempDataProvider provider to store TempData in a
I'm making a simple class that uses operator<< . It will store two parallel
I am working on the high-level design of a web application with the following
I am fighting with CoreData again and i need your help :P I am
I know there have been quite a few posts on this but none seem
My app needs to be able to disconnect from a server and connect to
I would like to set up a magento website to sell pizzas, here are
I have an NSPredicateEditor that is part of a preference panel for a tool

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.