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 8044389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:12:52+00:00 2026-06-05T05:12:52+00:00

I know we should store time in UTC in our databases, but I’m having

  • 0

I know we should store time in UTC in our databases, but I’m having a hard time to get support from my team to adopt this because of the followings:

  • we never deal with internaltional time stamps
  • we have day light savings but we always display localtime, no need to store in UTC
  • the burden to data wearhouse is huge since conversions are required now
  • we consume external data and they are not in UTC, it’ll cause extra work for others
  • our business users never asked

I have two questions here.

  • If we convert our existing local time to UTC, will that always result in valid datetime stamps? I have heard that conversion from UTC to local times are always valid. But conversion from local time to UTC may not.
  • I can’t think of any other pro UTC arguments except it’s the right thing to do and UTC time is always valid.

For most of the usage, these times will be used for display purposes and also run reports aganist (start date and end date). Some business users have direct read access to them as well (they like local time).

  • 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. Editorial Team
    Editorial Team
    2026-06-05T05:12:53+00:00Added an answer on June 5, 2026 at 5:12 am

    If we convert our existing local time to UTC, is that a valid conversion?

    Define “valid”.

    It’s not always unambiguous, for one thing. A given local time can map to 0, 1 or 2 UTC times:

    • 0 mappings if the local time is skipped, e.g. 1.30 when local time goes from 1am to 2am due to a DST transition “spring forward”. This shouldn’t happen if it’s meant to be a valid local time, of course, but if you have something like a weekly event, you could end up with invalid local times inadvertently.
    • 1 mapping if there are no DST transitions involved
    • 2 mappings if the local time is ambiguous, e.g. 1.30 when local time goes from 2am back to 1am due to a DST transition “fall back”

    Fundamentally, local time is harder to reason about when you need to think about DST transitions. 12.30am + 1 hour isn’t always 1.30am, for example.

    Personally I think you should try to model whatever the times you’re given really represent. Sometimes that’s local time with a particular offset from UTC; sometimes it’s really not a human time at all, but a timestamp with an arbitrary scale and epoch. I’ve written a bit about this in the Noda Time user guide.

    You haven’t really told us about what you need to do with these times. Do you need to perform any kind of arithmetic? Comparisons? Recurrences? Displaying to the user? Potentially displaying to users in other time zones? It’s very hard to make any concrete recommendations without that sort of information.

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

Sidebar

Related Questions

i wanted to know where we should store the db in our project and
We store all our dates SQL Server 2008 database in UTC time in DateTime
I need to know what should I use to store the property? I'm still
I know this should be a basic question but I am hitting a brick
I know I should do my homework on my own but I simply can't
I know you should use a StringBuilder when concatenating strings but I was just
I know it should be a fairly easy thing to do but for some
I know there should be a simple fix for this, but im braindead at
this is probably something I should know, but I'm puzzled by this. I'm trying
I'm having hard time with this project, I'm building a boat configurator which is

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.