Skip to content

Commit

Permalink
#master: proper date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed May 15, 2014
1 parent 39c3d82 commit cc01db3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/resources/META-INF/maven/site.vm
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
<header>
<i class="menu-button fa fa-align-justify"></i>
<div class="logo">
<a href="${decoration.bannerLeft.href}" title="${decoration.bannerLeft.title}">
<a href="${decoration.bannerLeft.href}"
title="#if ($decoration.bannerLeft.title) ${decoration.bannerLeft.title} #else logo #end">
<img src="${decoration.bannerLeft.src}"
alt="${decoration.bannerLeft.name}"
#if (${decoration.bannerLeft.width})
Expand All @@ -125,7 +126,8 @@
<div class="date">
<div class="date-numbers">
<strong itemprop="version">${project.version}</strong>
<time itemprop="datePublished" datetime="${currentDate}">
$dateFormat.applyPattern("yyyy-MM-dd'T'hh:mm:ss'Z'")
<time itemprop="datePublished" datetime="${dateFormat.format($currentDate)}">
$dateFormat.applyPattern('dd-MMM-yyyy')
${dateFormat.format($currentDate)}
</time>
Expand Down

0 comments on commit cc01db3

Please sign in to comment.