Commit 3d78c9f0 authored by Romain Therville's avatar Romain Therville 🐭

Fix for the displayed date

The displayed date (when the retention is a fixed date) was wrong.

Issue #120
parent a23abb97
......@@ -343,8 +343,8 @@ please have a look at our storage fees (<a href="###URL_PRICE###">###URL_PRICE##
$retention_value = $split_retention_line[1];
if($policy == "date"){
$date = date("d/m/Y", strtotime($retention_value));
$nice_date = date('l jS \of F Y h:i:s A', $date);
$date = date_create_from_format("d/m/Y", $retention_value);
$nice_date = date_format($date, 'l jS \of F Y');
$return_text = " until ".$nice_date;
}elseif($policy == "period"){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment