Use common date formatter in sosiale page
This commit is contained in:
parent
980d4018c2
commit
c0a892789e
|
@ -2,6 +2,7 @@
|
||||||
date_default_timezone_set('Europe/Oslo');
|
date_default_timezone_set('Europe/Oslo');
|
||||||
setlocale(LC_ALL, 'no_NO');
|
setlocale(LC_ALL, 'no_NO');
|
||||||
require __DIR__ . '/../../src/_autoload.php';
|
require __DIR__ . '/../../src/_autoload.php';
|
||||||
|
use \pvv\side\Agenda;
|
||||||
$agenda = new \pvv\side\Agenda([
|
$agenda = new \pvv\side\Agenda([
|
||||||
new \pvv\side\social\NerdepitsaActivity,
|
new \pvv\side\social\NerdepitsaActivity,
|
||||||
new \pvv\side\social\AnimekveldActivity,
|
new \pvv\side\social\AnimekveldActivity,
|
||||||
|
@ -34,7 +35,7 @@ $agenda = new \pvv\side\Agenda([
|
||||||
<a href="<?= $event->getURL() ?>"><?= $event->getName() ?></a>
|
<a href="<?= $event->getURL() ?>"><?= $event->getName() ?></a>
|
||||||
</h2>
|
</h2>
|
||||||
<ul class="subtext">
|
<ul class="subtext">
|
||||||
<li>Tid: <strong><?= trim(strftime('%e. %b %H.%M', $event->getStart()->getTimeStamp())) ?></strong>
|
<li>Tid: <strong><?= Agenda::getFormattedDate($event->getStart()) ?></strong>
|
||||||
<li>Sted: <strong><?= $event->getLocation() ?></strong>
|
<li>Sted: <strong><?= $event->getLocation() ?></strong>
|
||||||
<li>Arrangør: <strong><?= $event->getOrganiser() ?></strong>
|
<li>Arrangør: <strong><?= $event->getOrganiser() ?></strong>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue