diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-21 10:59:16 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-21 10:59:16 -0400 |
commit | 7352cab8ee8dd37c76ac2492695cc4c347d9564c (patch) | |
tree | b0b1480267400083c7e0a5b14ccd1b5105276f02 /lib/util.php | |
parent | cb45529d8d773690c86f0274cd3a560f066b0a05 (diff) |
add w3dtf date to rss 1.0 items
darcs-hash:20080521145916-84dde-4a5e04edb1bdcdb5e33bed7497dcf93be88636f8.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 8b013c645..052f35fdd 100644 --- a/lib/util.php +++ b/lib/util.php @@ -380,6 +380,11 @@ function common_date_string($dt) { return $dt; } +function common_date_w3dtf($dt) { + $t = strtotime($dt); + return date(DATE_W3C, $t); +} + function common_redirect($url, $code=307) { static $status = array(301 => "Moved Permanently", 302 => "Found", |