From 205a42778dff04f1552e34ac2b7ade9e407ab1a0 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Wed, 17 Feb 2016 22:46:50 +0100 Subject: cleanup: use DateTime to format dates Closes #270 Modifications: - replace custom date parsing by DateTime calls - use proper date formatting for RSS feeds Deletions: - linkdate2timestamp() - linkdate2rfc822 - linkdate2iso8601 Signed-off-by: VirtualTam --- application/LinkDB.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application') diff --git a/application/LinkDB.php b/application/LinkDB.php index 9f4d3e3c..9488ac45 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php @@ -32,6 +32,9 @@ class LinkDB implements Iterator, Countable, ArrayAccess // Links are stored as a PHP serialized string private $_datastore; + // Link date storage format + const LINK_DATE_FORMAT = 'Ymd_His'; + // Datastore PHP prefix protected static $phpPrefix = '