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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:44:02+00:00 2026-05-31T10:44:02+00:00

In my MySQL database I have 2 raws with timestamp data type . And

  • 0

In my MySQL database I have 2 raws with timestamp data type . And I have datepickers in the front end with 2 fields (I am picking values MM/DD/YYYY from datepicker) . And when I write my SQL query using to pull out the time of that 2 timestamp raws using sql’s UNIX_TIMESTAMP(table_name.column_name) and comparing with the same date picked from the date jQuery’s datepicker apprears (after calculations) that datepicker’s time is 4 hours ahead . How come ? I spent my whole past day not even thinking that could be my problem…
And now to have no conflicts I am comparing mysql’s unix_timesatmp(table_name.column_name) with datepicker’s time-14400 (4 hours = 14400s) .
So how do you see an easier way of sorting this out and doesnt this seem weird to you ?

  • 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-31T10:44:04+00:00Added an answer on May 31, 2026 at 10:44 am

    Check the timezone on the server (which is what MySQL uses) vs. the timezone on your computer (which is what javascript/jQuery uses).

    If that doesn’t cover it, need more information about what exactly you’re trying to accomplish.

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

Sidebar

Related Questions

In mysql database i have this column called: Name: Date Type: datetime I have
In a MySQL database I have documents of different type: some have text content,
I'm new and don't have much experience in database. I've a front end GUI
i want to make Mysql Database converter that can obtain the data from Database
I have a MySQL database, php code to retrieve from the database, and an
hi all i have a field ammount in mysql database which have varchar(50) type.
every Monday I need to empty few fields of a MYSQL database I have
MYSQL Database: I have a table of data that I need to put into
In my MySql database i have a field which is a timestamp. MySQL is
I have mysql database and is full of over 2 years of data. How

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.