Code cleaning

and use HTTP_DATE instead of duplicating code.
This commit is contained in:
Jocelyn Fiat
2013-02-19 10:41:33 +01:00
parent a97235c7b7
commit 0d51189324
3 changed files with 4 additions and 13 deletions

View File

@@ -8,11 +8,6 @@ class
WEB_CMS
inherit
-- CMS_SERVICE
-- redefine
-- modules
-- end
WSF_DEFAULT_SERVICE
redefine
initialize

View File

@@ -7,13 +7,6 @@ note
deferred class
CMS_SETUP
feature -- Initialization
initialize_storage (a_cms: CMS_SERVICE)
do
end
feature -- Access
configuration: detachable CMS_CONFIGURATION

View File

@@ -84,8 +84,11 @@ feature {NONE} -- Implementation
date_to_rfc1123_http_date_format (dt: DATE_TIME): STRING_8
-- String representation of `dt' using the RFC 1123
local
d: HTTP_DATE
do
Result := dt.formatted_out ("ddd,[0]dd mmm yyyy [0]hh:[0]mi:[0]ss.ff2") + " GMT"
create d.make_from_date_time (dt)
Result := d.rfc1123_string
end
invariant