Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Error date!!!
1 2
Leandrokw
Posted on 31 Jul 2009, 20:46:15

Access: Member
Total Posts: 3
Joined: 2009-07-31

Hello, sorry my English... I am Brazilian...

All date of the post is 31-12-69....
How do I fix this?

Congratulations by the system is show! :happy:
#709
Chris
Posted on 01 Aug 2009, 04:47:56

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

Code:
1249098380
#710
Leandrokw
Posted on 01 Aug 2009, 15:27:09

Access: Member
Total Posts: 3
Joined: 2009-07-31

Hello....
i am execute this code...

requesttime.php = 1249136744

the erroe continueted

and now?

thanks
#711
Leandrokw
Posted on 03 Aug 2009, 14:16:13

Access: Member
Total Posts: 3
Joined: 2009-07-31

HELP ME SOMEONE!!!

PLEASE!!!

how to resolve this problem the day?

Thanks!
#712
Chris
Posted on 03 Aug 2009, 15:37:53

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.
#713
Visionmill
Posted on 07 Aug 2009, 10:33:40

Access: Member
Total Posts: 3
Joined: 2009-08-07

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.

Any suggestions?

Regards

Jonathan
#716
Chris
Posted on 07 Aug 2009, 12:29:06

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.
#717
Visionmill
Posted on 10 Aug 2009, 15:19:42

Access: Member
Total Posts: 3
Joined: 2009-08-07

Hi Chris,

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.

Any other suggestions that I can try?
#719
Last edited by Visionmill at 2009-08-10 15:23:30 Reason:
Chris
Posted on 10 Aug 2009, 15:34:22

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I'm pretty positive I know what's causing this now. I just need to know a bit about your setup to determine how I'll fix it.

Is the your server using Linux or Windows and which version of PHP do you have installed?

Once I get that info I'll try reproduce the problem then create a fix for it.
#720
Last edited by Chris at 2009-08-10 15:36:37 Reason:
Visionmill
Posted on 11 Aug 2009, 09:33:18

Access: Member
Total Posts: 3
Joined: 2009-08-07

Hi

I don't know what the server is running on - my host is 1and1.co.uk Could the php version be 2.6.4. MySQL version is 5.1

Sorry.

Jonathan
#721
1 2
Network-13.com © 2013