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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:12:18+00:00 2026-05-23T11:12:18+00:00

I built something like chat service in a website, and when a user send

  • 0

I built something like chat service in a website, and when a user send a message or receive a message I show for him when the message sent or received.

I save all messages in the DB.

Now the problem came from: the server which hosts the website is in USA, and some users come from different countries, with different time zones.

So I the user sent a message and he was in Egypt for example, he will see that his message sent 6 hours ago not now as he just sent 🙂

I want to know how website such as facebook, twitter and stackoverflow solve this issue.

Notes:
– I am not asking the user about his timezone or country while registration.
– I am using ASP.Net MVC.
– I am using timeago jquery plugin to show nice formated dates.

  • 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-05-23T11:12:19+00:00Added an answer on May 23, 2026 at 11:12 am

    I’d guess the best way would be to collect a DateTime value from your user’s PC whenever they submit text.

    From that, you should be able to determine what time zone they are in based on the number of hours difference.

    Then, whenever you display the time stamp in your application, add or subtract the number of hours difference.

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

Sidebar

Related Questions

I am trying to built something like this: http://tourdeflex.adobe.com/flex4.0/TextLayoutFrameworkBasic/sample2.html User can not copy content
Is there a framework built in rails that lets me do something like send
is there something like API built atop the standard ProcessBuilder for calling system programs?
I have a variable that is built in loop. Something like: $str = ;
Hey, is there any built in functions or something like that in php that
It seems like this should be something built into jQuery without the need for
I built a fluent interface like this: criador.Include(Idade, 21).Include(Idade, 21); Can I do something
How to escape all regex characters automatically using built-in .NET mechanism or something like
i try to save an margin value in a resourcedictionary. Something like that: xmlns:systemwindows=clr-namespace:System.Windows;assembly=System.Windows.dll
I'm looking for something like built-in arithmetic operators that has a return value in

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.