Skip to content

Commit

Permalink
Short timezones and link to month list (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson committed Aug 22, 2021
1 parent 0e21652 commit c2615f7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/js/timezone-converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Convert to local browser time for actual display.
const date = new Date(Date.parse(timeEl.dateTime));
const options = {
timeZoneName: 'long',
timeZoneName: 'short',
year: 'numeric',
month: 'long',
day: 'numeric',
Expand Down
2 changes: 2 additions & 0 deletions public/build/app.64e28fd3.js

Large diffs are not rendered by default.

File renamed without changes.
2 changes: 0 additions & 2 deletions public/build/app.ec250921.js

This file was deleted.

2 changes: 1 addition & 1 deletion public/build/entrypoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"js": [
"/build/runtime.c793f42a.js",
"/build/741.6a0af2df.js",
"/build/app.ec250921.js"
"/build/app.64e28fd3.js"
],
"css": [
"/build/app.f7a0a964.css"
Expand Down
2 changes: 1 addition & 1 deletion public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"build/app.css": "/build/app.f7a0a964.css",
"build/app.js": "/build/app.ec250921.js",
"build/app.js": "/build/app.64e28fd3.js",
"build/map.css": "/build/map.194bb611.css",
"build/map.js": "/build/map.5b53fdc6.js",
"build/runtime.js": "/build/runtime.c793f42a.js",
Expand Down
8 changes: 5 additions & 3 deletions templates/post/view.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
#}<span class="p-name">{{ post.author.name }}</span>{#
#}{% if post.author.homepage %}</a>{% endif %}{#
#}.
<time datetime="{{ post.date.format('Y-m-d\\TH:i:s\\Z') }}" class="dt-published">
{{ post.date.format('Y F j (l), g:iA') }}
</time>
<a href="{{ path('month', {year:post.date.format('Y'), month: post.date.format('m') }) }}">
<time datetime="{{ post.date.format('Y-m-d\\TH:i:s\\Z') }}" class="dt-published">
{{ post.date.format('Y F j (l), g:iA') }}
</time>
</a>
{% if post.url %}
<span class="url">URL: <a href="{{ post.url }}">{{ post.url }}</a></span>
{% endif %}
Expand Down

0 comments on commit c2615f7

Please sign in to comment.