Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
How do I create an article from 1951?
I went to add a post from June 30, 1951, and Textpattern entered it as Dec 31, 1969 (as seen in MySQL). Even more strangely, it shows up in my rss_* plugins as 2006. I’ve only done this locally on my dev environment, running MAMP.
Is there some earliest date restriction for article posts? Any workarounds?
Offline
#2 2006-08-29 01:49:01
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: How do I create an article from 1951?
Yes. It is a PHP limitation. From the manual (emphasis mine):
The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer). However, before PHP 5.1.0 this range was limited from 01-01-1970 to 19-01-2038 on some systems (e.g. Windows).
Offline
#3 2006-08-29 01:50:00
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: How do I create an article from 1951?
Textpattern uses Unix timestamps for article Posted dates. Dec 31 1969 is the lower limit.
You could use a custom field to manually associate an article with dates outside that range. The Posted date is supposed to indicate the date at which the article was made public, it’s not really intended for storing other information.
Alex
Offline
Pages: 1