From: Domas Mituzas Date: Tue, 7 Sep 2004 06:56:44 +0000 (+0000) Subject: timestamp fix X-Git-Tag: 1.5.0alpha1~2067 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=5e1553cd4188fb46fcc27c1ca1d3c1c73d2d1f3d;p=lhc%2Fweb%2Fwiklou.git timestamp fix --- diff --git a/includes/Feed.php b/includes/Feed.php index f50d7ee628..8b364469b5 100644 --- a/includes/Feed.php +++ b/includes/Feed.php @@ -1,4 +1,5 @@ @@ -170,7 +171,7 @@ class RSSFeed extends ChannelFeed { * @return string Date string */ function formatTime( $ts ) { - return gmdate( 'D, d M Y H:i:s \G\M\T', wfTimestamp2Unix( $ts ) ); + return gmdate( 'D, d M Y H:i:s \G\M\T', wfTimestamp( TS_UNIX, $ts ) ); } /** @@ -229,7 +230,7 @@ class AtomFeed extends ChannelFeed { */ function formatTime( $ts ) { // need to use RFC 822 time format at least for rss2.0 - return gmdate( 'Y-m-d\TH:i:s', wfTimestamp2Unix( $ts ) ); + return gmdate( 'Y-m-d\TH:i:s', wfTimestamp( TS_UNIX, $ts ) ); } /**