Comments on: Fixing feeds http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/ Just another Cetis Blogs site Mon, 22 Jun 2009 12:19:33 +0000 hourly 1 http://wordpress.org/?v=4.1.22 By: Whoila Blog » Blog Archive » Format date to RSS and ATOM using SMARTY http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-461 Sun, 08 Mar 2009 08:30:52 +0000 http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-461 […] http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/ […]

]]>
By: Tony http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-460 Wed, 16 Jan 2008 12:24:17 +0000 http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-460 Hey there,

Just found a need for this, so thanks a lot for the effort involved, and for making it available for the rest of us. Great stuff!

Tony

]]>
By: sam http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-459 Mon, 23 Jul 2007 11:15:38 +0000 http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-459 Hmmm…. that’s a bit off topic really… You are basically needing to wrestle with the strtotime() function which can’t handle the time zone or millisecond info in the format you’ve got there. I’ve got other things to think about today though. Anyone else?

]]>
By: Jamie http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-458 Fri, 20 Jul 2007 04:14:59 +0000 http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-458 Can you help me out?

I have a date in Atom format: 2007-07-18T19:32:00.001-07:00

And I want to convert it to: July 18th, 2007 7:32 PM

I tried looking it up online but nothing is helping very much. I want to do it using commands like date() and strftime() .. but it’s not working out for me.

Any help is greatly appreciated. I’m not sure if you can see my email or not, and I don’t want to post it, so if you can’t, please use this form: http://www.student.cs.uwaterloo.ca/~jmaerten/contact.html

Thank you SOO Much for your help!

]]>
By: sam http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-457 Fri, 04 May 2007 17:14:55 +0000 http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-457 I’m on PHP 5.1.6 – which is probably in need of an update. You have a very good point about getting both the useful constants and possibly the alternate date() syntax integrated into the official smarty plugin. Definitely worth sending them an email…

]]>
By: Mark Mitchenall http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-456 Mon, 23 Apr 2007 12:24:52 +0000 http://blogs.cetis.org.uk/sam/2007/02/15/fixing-feeds/#comment-456 I wish I’d found this posting a few days ago. I’ve just been through the exact same process, however, I just modified the existing Smarty plugin so that I could just pass ‘rfc822′ as the ‘format’ parameter to get the correct format for my RSS feeds, although this isn’t ideal.

BTW, which version of PHP is this? Because in 5.2.1 at least, the DATE_RSS constant matches the DATE_RFC2822 constant, i.e. “D, d M y H:i:s O”, so I’d have thought this ‘should’ be correct.

Still, thank you for your summary of this issue. Maybe you get could the Smarty guys to use the constants in the same way as you have in the main date_format modifier as it seems to do just what is required, as having two date formatting plug-ins seems like overkill to me.

]]>