Ok, so I have tried to research how to fix this problem, but so far nothing has worked. I found some threads on this forum but most of them had not been posted in for a year. No working result had been found.
All I want to do is create an archive for my blog, but it’s displaying the date as December 31st 1969.
I have tested my server date, and it turns up the correct date. I have used the following code on
this page.
<?php
$time = time();
$year = date('Y',$time);
$month = date('m',$time);
$day = date('d',$time);
echo $day.' '.$month.' '.$year;
?>
<?
$dateFormat = '%B %e, %Y';
$dateUnixTime = 'put the timestamp here';
echo strftime($dateFormat, (intval($dateUnixTime) ));
?>
It returns:
11 06 2009December 31, 1969
(today’s date / weirdo date)
Here are my calls:
[[Ditto? &parents=`2` &summarize=`4` &removeChunk=`Comments` &tpl=`ditto_blog` &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]
Showing [+start+] - [+stop+] of [+total+] Articles
[+previous+] [+pages+] [+next+]
[!Reflect? &parents=`2` &groupByYears=`1` &getDocuments=`1` &monthSortDir=`DESC` &dittoSnippetParameters=`parents:2` &showItems=`1` &dateSource=`pub_date`!]
HELP!!!!
I just need this to work. It seems like something so simple and yet I’ve spent the last 2 hours fumbling around in the dark. And please, if you need me to try anything technical I need full steps. I am not a php programmer so I am not used to any of this stuff.