17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 3482 Views |
-
Dates showing as 1969! Please help!

7 September 2008 at 6:11am
HEY THERE!
I used SilverStripe to build a site for a client... www.parkhillscc.com
The Events pages are showing the dates as 12/31/1969 - this is quite odd to me. Can some one please assist me here? I have an irritated client and I have tried the steps in a few other posts here about this problem w/ no success. Any help is greatly appreciated.
Danielle
-
Re: Dates showing as 1969! Please help!

11 September 2008 at 2:38am
Any one available to assist? I could really use some help! Thanks in advance.
-
Re: Dates showing as 1969! Please help!

11 September 2008 at 7:36pm
What value is stored in the database ?
-
Re: Dates showing as 1969! Please help!

12 September 2008 at 3:36am
Hi--
Did you ever get this solved? I'm having the same issue in the Blog module. No matter what date my blog posts have in the DB, the Archive links say "December 1969".
Any ideas??
//Garrett
-
Re: Dates showing as 1969! Please help!

12 September 2008 at 5:56am
This is still unresolved.
My database shows NULL and 00/00/0000.
Danielle
-
Re: Dates showing as 1969! Please help!

12 September 2008 at 6:26am
Weird.
Could you post the code ?
-
Re: Dates showing as 1969! Please help!

12 September 2008 at 12:03pm
Hi Spark,
Most likely, you date field points to wrong database field.
-
Re: Dates showing as 1969! Please help!

9 October 2008 at 2:08pm
Here is my ArticlePage.php code:
<?php
/**
* Defines the ArticlePage page type
*/
class ArticlePage extends Page {
static $db = array(
'Date' => 'Date',
'Author' => 'Text'
);
static $has_one = array(
);function getCMSFields() {
$fields = parent::getCMSFields();$fields->addFieldToTab('Root.Content.Main', new CalendarDateField('Date', 'Date'), 'Content');
$fields->addFieldToTab('Root.Content.Main', new TextField('Author'), 'Content');
return $fields;}
}class ArticlePage_Controller extends Page_Controller {
}
?>
But when anything is posted, it changes the date to 00/00/0000 both in the CMS and in the database. This is a major problem. Can anyone please help??
Danielle
| 3482 Views | ||
| Go to Top | Next > |



