From b37c65e6bd46f388489ad4e16ed5319adafd15ce Mon Sep 17 00:00:00 2001 From: Nathanael Jourdane Date: Mon, 7 Aug 2017 17:00:47 +0200 Subject: [PATCH] EpnTapMgr: Display dates in the US form (yyyy/mm/dd) --- php/classes/EpnTapMgr.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/classes/EpnTapMgr.php b/php/classes/EpnTapMgr.php index 3413e91..2e87aa1 100644 --- a/php/classes/EpnTapMgr.php +++ b/php/classes/EpnTapMgr.php @@ -16,8 +16,8 @@ class EpnTapMgr { return ''; } list($month, $day, $year) = preg_split('/[\s\/:]+/', JDToGregorian(intval($jd))); - $date = sprintf('%02d', $day) . '/' . sprintf('%02d', $month) . '/' . sprintf('%04d', $year); - return ($date == '00/00/0000') ? '' : $date; + $date = sprintf('%04d', $year) . '/' . sprintf('%02d', $month) . '/' . sprintf('%02d', $day); + return ($date == '0000/00/00') ? '' : $date; } public function createFilter($dataproduct_type, $target_name, $time_min, $time_max) { -- libgit2 0.21.2