Convert PHP datetime to MySQL RFC-822 valid Date-Time for RSS Feed -


i want add date/time, created in php, mysql valid in rss feed.

i'm using in php

$d = date( 'y-m-d h:i:s t', time() ); $mysqldate = gmdate(date_rss, strtotime($d)); 

inserting datetime field in database

but saves in format wed, 02 oct 2002 08:00:00

and need in format rfc-822 valid wed, 02 oct 2002 08:00:00 est

use date_rfc822 instead of date_rss


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -