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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:39:48+00:00 2026-05-26T04:39:48+00:00

To handle dates, i’m using a jQuery UI public method in my application: jQuery.datepicker.formatDate

  • 0

To handle dates, i’m using a jQuery UI public method in my application: jQuery.datepicker.formatDate
See params & source here : https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.datepicker.js

However the wrong date is displayed sometimes, according to the computer timezone.

Demo here : http://jsfiddle.net/7ACdB/

With a UTC+1 (paris) timezone in windows, i got :

03/30/20
03/30/20

With a UTC-6 (us&canada) timezone in windows, i got :

03/29/20 <- meh!
03/30/20

You need to restart your browser (well for google chrome at least) when you change the OS timezone.

My problem is the “03/29/20” date as you can imagine.

Can somebody explains to me if this is normal or a jquery ui issue ?

I’m beginning to think that it is normal to see a “Mon Mar 30 2020 00:00:00 GMT+0200 (Romance Daylight Time)” as 03/29/20 in a US timezone but i’m not so sure. :-/

  • 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-26T04:39:48+00:00Added an answer on May 26, 2026 at 4:39 am

    What you’re getting is correct. Your example sets the time at midnight for Paris. Midnight in Paris is 6PM the day before in the US for the Eastern Time Zone which I am in.

    Your first time: GMT+0200 is Paris

    Your second time: GMT-0500 is Chicago (note it is currently Daylight Savings Time)

    So, when you change the time zone to US (using one of our 6 time zones), the output is the time in the US when is that time in Paris.

    Here is an updated fiddle with a the time set to 6 AM Paris: http://jsfiddle.net/jensbits/7ACdB/1/

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

Sidebar

Related Questions

I am working on a Rails application that needs to handle dates and times
I'm using the excellent (but large) DateJS library to handle dates and times in
I'm working on an application where dates are passed as yyyy-mm-dd but displayed to
I noticed Date.Parse can't handle only 2 digits dates. Say I have this mm/dd/yy
Essentially what I've got going is a single-handle jQuery UI slider for a bunch
I'm putting together an application that will require the recording of dates as far
I'm planning to make an application that needs to store dates way before 1970.
I am working on an application that needs to handle expiring airline miles. The
What is the best way for me to handle dates and timezones in rails?
Possible Duplicate: How to find number of days between two dates using php I'm

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.