Skip to content
Permalink
Browse files

wired the event date time to display properly

  • Loading branch information
caseysoftware committed May 26, 2014
1 parent a9cd858 commit 81ded99e460e05d1211067797b008e023ba9f3b8
Showing with 6 additions and 2 deletions.
  1. +4 −0 classes/w2p/Output/HTML/ViewHelper.class.php
  2. +2 −2 style/_common/events/view.php
@@ -17,6 +17,10 @@ public function addField($fieldName, $fieldValue)
$suffix = end($pieces);

switch($suffix) {
case 'datetime':
$myDate = intval($fieldValue) ? new w2p_Utilities_Date($this->AppUI->formatTZAwareTime($fieldValue, '%Y-%m-%d %T')) : null;
$output = $myDate ? $myDate->format($this->dtf) : '-';
break;
case 'email':
$output = w2p_email($fieldValue);
break;
@@ -15,10 +15,10 @@
<?php $view->showField('event_project', $event->event_project); ?>
</p>
<p><?php $view->showLabel('Starts'); ?>
<?php $view->showField('event_start_date', $event->event_start_date); ?>
<?php $view->showField('event_start_datetime', $event->event_start_date); ?>
</p>
<p><?php $view->showLabel('Ends'); ?>
<?php $view->showField('event_end_date', $event->event_end_date); ?>
<?php $view->showField('event_end_datetime', $event->event_end_date); ?>
</p>
<p><?php $view->showLabel('Recurs'); ?>
<?php $view->showField('event_recurs', $recurs[$event->event_recurs]); ?>

0 comments on commit 81ded99

Please sign in to comment.
You can’t perform that action at this time.