Revision 177a39cb
Added by Andreas Müller over 1 year ago
modules/cdm_dataportal/cdm_api/cdm_api.module | ||
---|---|---|
446 | 446 |
* @return |
447 | 447 |
* the formatted string representation of the $datetime |
448 | 448 |
*/ |
449 |
function format_datetime($datetime, $format = 'Y-m-d H:i:s', $strip_zeros = true){ |
|
449 |
function format_datetime($datetime, $format = 'Y-m-d H:i:s O', $strip_zeros = true){
|
|
450 | 450 |
return date($format, strtotime($datetime)); |
451 | 451 |
} |
452 | 452 |
|
Also available in: Unified diff
ref #10079 add timezone to (registration) date