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 How To RSS Feed into Slidedeck - Dates are wacky
Rayc
Posted on 25 Oct 2010, 13:55:35

Access: Member
Total Posts: 74
Joined: 2010-06-13

I was looking at Slidedeck, and noticed the option at the bottom left of the page:
Create dynamic SlideDecks using your favourite RSS Feeds!

I thought that seemed cool, so I punched in the RSS from a site I just completed, and all of the dates for the articles say Posted 14908 days ago.

Looking at the XML Page for the feed itself, I see there are no dates shown, whereas other feeds do have a date.

Is this a programming oversight, or have I missed a setting or template entry to have the date appear in the RSS feed?

(Still on v3.7, if that's important).

Thanks,
-RayC
#2995
Chris
Posted on 25 Oct 2010, 14:09:26

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

I think this has something to do with the timezone offset you have in the system options, you have it set to -18000 which sets the time back 5 hours. Try setting this to +0000, although it'll throw the dates off by 5 hours I'm curious if it fixes the "Posted 14908 days ago." thing.
#2996
Chris
Posted on 25 Oct 2010, 14:13:23

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

And upgrade to 4.0! it's much better.
#2997
Rayc
Posted on 25 Oct 2010, 22:14:28

Access: Member
Total Posts: 74
Joined: 2010-06-13

Quote:
And upgrade to 4.0! it's much better.
:tongue:

Yeah, I will. Especially since there's features in it that I've nagged about here since I discovered N-13. :innocent: First I need to try it on the test site, then the client site. It's not my site, so must be careful.

Interestingly enough, when I change the GMT offset to +0000, it seems to work. Although the XML page still does not show the date, even though a {date} entry is specified in the RSS template.

Now I'm wondering if the same would happen with v4.0 time set to GMT-18000... But I don't see a timezone setting in v4...:new_huh:
#2998
Chris
Posted on 26 Oct 2010, 11:44:41

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

Reason there is no longer a timezome setting in 4.0 is that I discovered a problem that caused articles that had the date set to a future date to not show properly, or not sure at the proper time.

In 4.0 a new setting has been added to config.php, it determines the server time and uses that, you can then specify what you'd like to change it to.

Code:
// Check if the default timezone has been set, if not set it to UTC
// For a list of supported timezones see here - http://www.php.net/manual/en/timezones.php
// To set your own timezone comment out this code and use this example
// date_default_timezone_set('Europe/London'); 
if(function_exists("date_default_timezone_get")){
    if(!date_default_timezone_get()){
        date_default_timezone_set('UTC');
    }
}
#3000
Network-13.com © 2013