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

  • Home
  • SEARCH
  • 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 7907371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:23:53+00:00 2026-06-03T11:23:53+00:00

I want the user to enter an appointment date and time and send him

  • 0

I want the user to enter an appointment date and time and send him a reminder an hour before it.

On the server I want to store the date-time in UTC, but on the client the user will enter it in his local time. Whats the best way to deal with this conversion?
Is there a plugin that natively supports this?

  • 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-03T11:23:56+00:00Added an answer on June 3, 2026 at 11:23 am

    Yes, there’s a plugin which detects the timezone according to the system-information (jsTimezoneDetect). Actually a date-object itself stores the information (but it’s kinda wierdo!).

    There’s an interesting article and an interesting answer here on SO, which is worth a read!

    Don’t do any date-time computations in javascript. You may guess the
    browsers time zone to define it, but the definition itself and all
    date-time computations must be made in a time-zone aware system.

    As you will read this article, you’ll get a deeper understanding of the problem “date/dst/utc/timezones in javascript” – therefore it would be interesting if you tell us more about your server-side:

    • Which framework do you use on your server-side?
    • Do you have any logic for represeting accounts with some settings (eg custom timezone-settings)?

    The “correct” approach (which is fail-safe if you have the backend behind it) will be: let the user work with a datetime – in the browser-scope it’s more or less “undefined” (no need to find the timezone, offset, or anything alike!). Now you provide this “undefined” datetime information to the server (eg sending the unix-timestamp with a hiddenfield to the server), where you have the information which actual timezone the user is assigned to. So you can now translate this “undefined” datetime-information to a time-zone aware datetime-object on the server-side and assign the information of your account-scope to it (now the “undefined” datetime-object has a local time-zone – eg “Pacific Daylight Time”). Now you can easily do any conversion you want.
    The only downside of this approach is, that you will have 2 scopes of defining a timezone (OS of the user and your webapp) – but anything else is fiddling and not fail-safe!

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

Sidebar

Related Questions

I'm building a GWT Application. But i dont want user to enter any html
I want the user to enter a string, double and a long, but the
I'm unsure what the user will enter but I want to break their input
I want user to enter a date. Using a form, and in the background
I have textarea in my site(link shortening site) i want to user enter some
I want the user to enter a MAC address in the format : aa:bb:cc:dd:ee:ff
This is what I want : Let the user enter as many numbers as
Basically, I do not want the user to enter '0' (zero) as the first
I want to allow user to enter only english alphabets and characters. How can
In my view I want to add the text user enter in a textarea

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.