What do you mean "the year range starts 1970"? This sounds like it might be a PHP situation. Please provide more detail.
*cLFlaVA
----------------------------
Ham and Eggs walks into a bar and asks, "Can I have a beer please?"
The bartender replies, "I'm sorry, we don't serve breakfast.
Forri:
Which specific date/time columntype are you using?
According to the MySQL online manual, the limits of the various date/time types are:[ul][li]DATE[/li][ul][li]1000-01-01 through 9999-12-32[/li][/ul][li]DATETIME[/li][ul][li]1000-01-01 00:00:00 through 9999-12-31 23:59:59[/li][/ul][li]TIMESTAMP[/li][ul][li]1970-01-01 00:00:00 to partway through the year 2037[/li][/ul][/ul]
And the manual does not specify any OS-specific limits beyond that.
Depending on what PHP functions you are using, the problem could have resulted there.
There was really no need to convert the column to type char, but, rather, use a different function.
For example, the function mktime(), I believe, only works with dates after 1/1/1970. There are definitely ways around this.
*cLFlaVA
----------------------------
Ham and Eggs walks into a bar and asks, "Can I have a beer please?"
The bartender replies, "I'm sorry, we don't serve breakfast.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.