Forum Moderators: coopster & phranque

Message Too Old, No Replies

Creating RFC-822 date from non-compliant date

RSS 2.0 and legacy app

         

rbacal

4:06 pm on May 17, 2006 (gmt 0)



I use an old web based application that creates non-compliant date formats. To create an RSS 2.0 feed I need to create the proper format from "17-May-2006 - 09:49:25" format.

The old app is in perl.

In particular I want to create the feed so I can include the <lastbuilddate> in the channel data. The RFC-822 date for the feed will only be used for that particular function.

I'm thinking my options are to recode the application and all date references to make the dates permanently compliant (can't do that, since I don't have the code skills to rewrite the app), or b) convert the existing date format on the fly, but not store it anywhere, or c) use a system date which is created each time the feed is created.

Obviously the latter is most optimal, I'm thinking.

Anyway, any ideas on a solution that requires minimal coding, no changes to the native app date format, and that which a non-programmer can figure out?

KevinADC

6:56 pm on May 17, 2006 (gmt 0)

10+ Year Member



if the app you currently use is not too long, you can post the code, or the relevant section of code, and someone can help you modify it to produce the date format you want.