summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_abo/page_abo.phtml12
1 files changed, 6 insertions, 6 deletions
diff --git a/views/mods/mod_abo/page_abo.phtml b/views/mods/mod_abo/page_abo.phtml
index 79cb1a9..d7354a4 100644
--- a/views/mods/mod_abo/page_abo.phtml
+++ b/views/mods/mod_abo/page_abo.phtml
@@ -61,11 +61,11 @@
<?php $exp = $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getId())); ?>
<?php if ($oAbo->getState() === wpsg_abo::STATE_RUNNING) { ?>
- <span class="duration_running"><?php echo $exp; ?></span>
+ <span class="duration_running"><?php echo ((strtotime((string)$exp) !== false)?wpsg_formatTimestamp(strtotime($exp)):$exp); ?></span>
<?php } else if ($oAbo->getState() === wpsg_abo::STATE_INEXTENSION) { ?>
- <span class="duration_inextension"><?php echo $exp; ?></span>
+ <span class="duration_inextension"><?php echo ((strtotime((string)$exp) !== false)?wpsg_formatTimestamp(strtotime($exp)):$exp); ?></span>
<?php } else if ($oAbo->getState() === wpsg_abo::STATE_EXTEND) { ?>
- <span class="duration_expired"><?php echo $exp; ?></span>
+ <span class="duration_expired"><?php echo ((strtotime((string)$exp) !== false)?wpsg_formatTimestamp(strtotime($exp)):$exp); ?></span>
<?php } ?>
</span>
@@ -162,11 +162,11 @@
<?php $exp = $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getId())); ?>
<?php if ($oAbo->getState() === wpsg_abo::STATE_RUNNING) { ?>
- <span class="duration_running"><?php echo $exp; ?></span>
+ <span class="duration_running"><?php echo ((strtotime((string)$exp) !== false)?wpsg_formatTimestamp(strtotime($exp)):$exp); ?></span>
<?php } else if ($oAbo->getState() === wpsg_abo::STATE_INEXTENSION) { ?>
- <span class="duration_inextension"><?php echo $exp; ?></span>
+ <span class="duration_inextension"><?php echo ((strtotime((string)$exp) !== false)?wpsg_formatTimestamp(strtotime($exp)):$exp); ?></span>
<?php } else if ($oAbo->getState() === wpsg_abo::STATE_EXTEND) { ?>
- <span class="duration_expired"><?php echo $exp; ?></span>
+ <span class="duration_expired"><?php echo ((strtotime((string)$exp) !== false)?wpsg_formatTimestamp(strtotime($exp)):$exp); ?></span>
<?php } ?>
</span>