Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Hi Leandrokw,
The system gets the date from the unix timestamp which started on 01-01-70, it seems your server may have the wrong date set. Try creating a new file called requesttime.php and inside it put this code
Code:
<?php echo time(); ?>
then run it from your browser, it should output a string of numbers simliar to this
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Run the requsettime.php file again and make a note of the number it gives, then login to the news system, goto Options > System,then for the "Timezone", enter a + then the number you've made a note of, so for example
+1249136744
Save the changes then check to see if the date has been corrected.
I've done this and now when I create a news item it adds the correct date. I can't seem to change the date to an earlier one. I would like to add historical news to our site but it doesn't save the settings.
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
I have a feeling this my be something to do with the function that allows you to set a custom date on news posts.
Try removing the timezone setting you added and changing it back to the default +0, now when adding a news post, before you post it, select the Toogle date checkbox at the bottom and check to see if the date is the current date.
Thanks for the reply. I have set the timezone back to +0 and when I create a new item it shows the correct date and time. However when it is posted it reverts back to 01/01/70. If i set the timezone back to +1249637338 (which was the result I got) it puts all the posts on the same date - 7th August 09. So it looks like the date isn't being stored correctly somewhere.