I can't seem to be able to get the time for the created date to display correctly. All the dates return the same time.
The date format I used is shown below.
<ul class="relateditems<?php echo $moduleclass_sfx; ?>">
<?php foreach ($list as $item) : ?>
<li>
<a href="<?php echo $item->route; ?>">
<?php echo $item->category_title;?><?php echo $item->category_title;?>
<span><?php if ($showDate) echo JHTML::_('date', $item->created, JText::_('M d Y | h:ia T')); ?></span>
<br />
<?php echo $item->title; ?></a>
</li>
<?php endforeach; ?>
This returns the date in this format; May 27 2013 | 01:00am WAT which is what I want BUT the problem is that all the dates on the module have the same time 01:00am WAT.
How do I get the date to display the correct time