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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:31:46+00:00 2026-05-19T01:31:46+00:00

I am using a jquery calendar called fullcalendar. When a user clicks a day

  • 0

I am using a jquery calendar called fullcalendar. When a user clicks a day they are sent to another page to create an event for that day. The date that was clicked is supplied as date. It is then run through the function below to convert it to UNIX time.

$formatDate = $.PHPDate("U", date);

I am using the javascript date library found here http://joncom.be/code/jquery-phpdate/

When I alert the date variable I get an output like this

Tue Jan 04 2011 00:00:00 GMT+1100
(EST)

This time is correct BUT after applying the $formatDate function the unix output is not in the correct time zone.

Unfortunately it’s returning local times relative to the server and I need it to supply times correct to the users timezone. I note that in the documentation there seems to be timezone references but in the documentation it says that timezones are “UNSUPPORTED”

Please… How can i convert my unix timestamp to the right timezone?

I should point out I have very little experience in javascript and come from a PHP/codeigniter background.

Thanks for your help.

Tim

  • 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-19T01:31:46+00:00Added an answer on May 19, 2026 at 1:31 am

    Here is a nice article explaining a lot about time zones in JavaScript: http://www.hunlock.com/blogs/Javascript_Dates-The_Complete_Reference.

    Bottom line is, the output will always be in the user’s computer’s (or at least, the browser’s) timezone. You can test this (I think) by changing the timezone in your computer’s settings. You will see the date changing in your browser as well (after a refresh, of course).

    Is this what you meant?

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

Sidebar

Related Questions

I'm building a concert calendar that's very heavy on javascript (using jQuery). I'm having
I am using jquery calendar used with Google calednar http://arshaw.com/fullcalendar It shows the events
I am currently using jQuery FullCalendar as a calendar system, and it is working
I'm trying to implement a event calendar using jquery-ui's datepicker. I've successfully installed the
Within my CodeIgniter app, I'm using a Jquery calendar pop-up that also captures time
I'm using this jQuery Full Calendar: http://arshaw.com/fullcalendar/ According to their documentation, I can load
I am using jquery mobile datepicker, i need to capture the calendar click event,
I am using Fullcalendar for jQuery and for some reason the calendar is appearing
I'm using jQuery to create an inline calendar with my Rails application. To respond
I am building a calendar web page using jQuery and asp.net-mvc similar to this

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.