FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

format date on articles Mon 18 Dec 17’ 00.00 GMT · devhttps/frontend@fcb30de · GitHub

Commit fcb30de

Browse files
committed
format date on articles Mon 18 Dec 17’ 00.00 GMT
1 parent dae4022 commit fcb30de

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎applications/app/views/fragments/crosswords/crosswordMeta.scala.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<div class="content__dateline content__dateline-crossword">
1616
<time itemprop="datePublished" datetime="@crosswordPage.crossword.date.toString("yyyy-MM-dd'T'HH:mm:ssZ"))"
1717
data-timestamp="@crosswordPage.crossword.date.getMillis" class="content__dateline-wpd js-wpd">
18-
@crosswordPage.crossword.date.toString("EEEE d MMMM y") <span class="content__dateline-time">@AuFriendlyFormat(crosswordPage.crossword.date)</span>
18+
@crosswordPage.crossword.date.toString("E d MMM yy’") <span class="content__dateline-time">@AuFriendlyFormat(crosswordPage.crossword.date)</span>
1919
</time>
2020
</div>
2121
</div>

‎article/test/ArticleFeatureTest.scala‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ import collection.JavaConverters._
159159
import browser._
160160

161161
Then("I should see the publication date of the article")
162-
$(".content__dateline-wpd").text should be("Monday 6 August 2012 20.30 BST")
162+
$(".content__dateline-wpd").text should be("Mon 6 Aug 12‘ 20.30 BST")
163163
$("time").attribute("datetime") should be("2012-08-06T20:30:00+0100")
164164
}
165165
}

‎common/app/views/fragments/meta/dateline.scala.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<time itemprop="datePublished" datetime='@Format(webPublicationDate, "yyyy-MM-dd'T'HH:mm:ssZ")'
99
data-timestamp="@webPublicationDate.getMillis" class="content__dateline-wpd js-wpd">
1010
@if(isMinute) {
11-
<span class="content__dateline-time">@Format(webPublicationDate, "EEEE dd MMM, yyyy")</span>
11+
<span class="content__dateline-time">@Format(webPublicationDate, "E d MMM yy’")</span>
1212
} else {
13-
@Format(webPublicationDate, "EEEE d MMMM y") <span class="content__dateline-time">@AuFriendlyFormat(webPublicationDate)</span>
13+
@Format(webPublicationDate, "E d MMM yy’") <span class="content__dateline-time">@AuFriendlyFormat(webPublicationDate)</span>
1414
}
1515
</time>
1616
@if(isLiveBlog) {
@@ -22,7 +22,7 @@
2222
data-timestamp="@date.getMillis" class="content__dateline-lm js-lm u-h"
2323
@optItemProp.map { itemProp => itemprop="@itemProp" }
2424
>
25-
@label @Format(date, "EEEE d MMMM y") <span class="content__dateline-time">@AuFriendlyFormat(date)</span>
25+
@label @Format(date, "E d MMM yy’") <span class="content__dateline-time">@AuFriendlyFormat(date)</span>
2626
</time>
2727
}
2828

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL