diff options
author | Silvio <silvio@socioambiental.org> | 2014-11-17 16:20:23 -0200 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2014-11-17 16:20:23 -0200 |
commit | 2a9a1e7982245f48a51a36a6c02242f34d4e6324 (patch) | |
tree | df6fd0a036e961d0ab6c679399133ae9478b5066 /timelinejs_json_event.tpl.php | |
parent | e586f688fd957969f0a49a9bc38cf2a390fe1747 (diff) | |
download | timelinejs-2a9a1e7982245f48a51a36a6c02242f34d4e6324.tar.gz timelinejs-2a9a1e7982245f48a51a36a6c02242f34d4e6324.tar.bz2 |
Date format support
Diffstat (limited to 'timelinejs_json_event.tpl.php')
-rw-r--r-- | timelinejs_json_event.tpl.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php index 75ab055..8a81c55 100644 --- a/timelinejs_json_event.tpl.php +++ b/timelinejs_json_event.tpl.php @@ -1,5 +1,5 @@ { - "startDate":"<?php print strftime('%Y,%m,%d', strtotime($event->field_date['und'][0]['value'])); ?>", + "startDate":"<?php print strftime($date_format, strtotime($event->field_date['und'][0]['value'])); ?>", "headline":"<?php print $event->title; ?>", "text":"<?php print timelinejs_strip($event->body['und'][0]['value']); ?>", <?php if (isset($event->field_tag) && isset($event->field_tag['und'][0]['value'])) { ?> |