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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:57:01+00:00 2026-06-09T06:57:01+00:00

I stumble upon a mysql timestamp insert problem with the date value larger than

  • 0

I stumble upon a mysql timestamp insert problem with the date value larger than current date
now the following step is

CREATE TABLE foo(
`ID` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`test_time`TIMESTAMP NULL DEFAULT NULL,
PRIMARY KEY (`ID`)
); 

INSERT INTO foo(test_time) VALUES('2038-01-19 11:14:08'); // fail
INSERT INTO foo(test_time) VALUES('2038-01-19 11:14:07'); // ok
INSERT INTO foo(test_time) VALUES('2038-01-18 23:59:00'); // ok
INSERT INTO foo(test_time) VALUES('2039-01-01 00:00:00'); // fail

fail means the test_time value is 0000-00-00 00:00:00
my timezone is UTC+8
I want to know whether 2038-01-19 11:14:07 is the max timestamp of mysql support,what’s the meaningful moment of this time?

  • 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-09T06:57:02+00:00Added an answer on June 9, 2026 at 6:57 am

    To store higher values for dates you must use DATETIME datatype.

    TIMESTAMP has a range from '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC

    DATETIME has a range from '1000-01-01 00:00:00' to '9999-12-31 23:59:59'

    http://dev.mysql.com/doc/refman/5.5/en/datetime.html

    As suggested by @Joachim Isaksson: PHP & mySQL: Year 2038 Bug: What is it? How to solve it?

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

Sidebar

Related Questions

In reading High performance MySQL from O'Reilly I've stumbled upon the following Another common
I stumble upon a problem, and can't find a solution. So what I want
Often I stumble upon following approach of defining conditional statement: if(false === $expr) {
At my workplace, we just stumbled upon the problem where we need to create
Just now, accidentally, i stumble upon http://www.benekdesign.com/ . Here on mouse wheel scroll it
One error I stumble upon every few month is this one: double x =
Got a question for some jQuery wizard who might stumble upon this. When I
When developing my own Java class to use within ColdFusion 8 I stumble upon
During many, sometimes inundating, debugging sessions using DDD, I stumble upon loops. And I
I stumbled upon this problem and it took my a while to realise what

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.