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

I would like to store the points whenever touchesMoved is called. So far everything
I am attempting to store a DevExpress DockPanel in a settings file. Everything appears
I have two grids, thay both have one store. I need to show everything
I've moved a Magento Store from a server to another (different link also). Everything
We're using MDM Zinc to create an app for the Apple App Store. Everything
Imagine I store everything on the server according to the server's date. However, when
In a query result, I want to store everything leading UP TO a certain
System.Web.UI.WebControls.FileUpload uses a FileInputStream when uploading files. Does this store everything in memory when
I need a way to store large-numbers of variously sized XML data in a
What is the better way to store similar structures in MongoDB? Choose one collections

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.