Commit b37c65e6bd46f388489ad4e16ed5319adafd15ce
1 parent
cef7375b
Exists in
master
and in
111 other branches
EpnTapMgr: Display dates in the US form (yyyy/mm/dd)
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
php/classes/EpnTapMgr.php
... | ... | @@ -16,8 +16,8 @@ class EpnTapMgr { |
16 | 16 | return ''; |
17 | 17 | } |
18 | 18 | list($month, $day, $year) = preg_split('/[\s\/:]+/', JDToGregorian(intval($jd))); |
19 | - $date = sprintf('%02d', $day) . '/' . sprintf('%02d', $month) . '/' . sprintf('%04d', $year); | |
20 | - return ($date == '00/00/0000') ? '' : $date; | |
19 | + $date = sprintf('%04d', $year) . '/' . sprintf('%02d', $month) . '/' . sprintf('%02d', $day); | |
20 | + return ($date == '0000/00/00') ? '' : $date; | |
21 | 21 | } |
22 | 22 | |
23 | 23 | public function createFilter($dataproduct_type, $target_name, $time_min, $time_max) { | ... | ... |