[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aggregating your global content output into your blog



--- In syndication@yahoogroups.com, "Bill Kearney" <ml_yahoo@i...> 
wrote:
> The ParseDateTime function doesn't handle ISO-8601 timestamps?

Bill,

Not automatically... the extra steps are trivial (strip the "T", 
snip the offset), but they're there. The real annoyance is handling 
feeds that stray from common practice, like <dc:date>s that omit the 
offset. The additional parsing code starts to stack up.

Obviously, that's a problem with <pubDate>, too... Plastic uses a 
non-POP date format in its <pubDate>, for example. It just so 
happens that ParseDateTime() handles most of those aberrations 
transparently, so I don't have to go to any extra effort with their 
feed.

> Near as I can tell this would be a simple matter of using 
DateConvert 
> to make a UTC time and then using LSDateFormat and LSTimeFormat to 
> concatenate the string.

Oh, *creating* a <dc:date> is no biggie... it's simply that I 
instinctively hesitate before creating dog food I wouldn't want to 
eat. :) But just for the hell of it, I added <dc:date> to both the 
forum feeds and the default RSS template for new blogs a few minutes 
ago.

--
Roger Benningfield
http://admin.support.journurl.com/