Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show timestamps in local date/locale #191

Merged
merged 4 commits into from Jan 29, 2020
Merged

show timestamps in local date/locale #191

merged 4 commits into from Jan 29, 2020

Conversation

ghost
Copy link

@ghost ghost commented Oct 3, 2019

this adds a helper script to rewrite all time elements with a proper
datetime attribute into the users locale via the browser
navigator.language.

collection, collection-post and chorus-collection-post templates now
include this script


requires #190, might need a rebase

ref T670

  • I have signed the CLA

this adds a helper script to rewrite all time elements with a proper
datetime attribute into the users locale via the browser
navigator.language.

collection, collection-post and chorus-collection-post templates now
include this script
@thebaer
Copy link
Member

thebaer commented Oct 3, 2019

Let's also get this code on the templates/chorus-collection.tmpl template, collection tags templates, and the Reader view.

@thebaer
Copy link
Member

thebaer commented Oct 7, 2019

Thanks 👍 Is this PR ready to go or still a draft?

@ghost ghost marked this pull request as ready for review October 7, 2019 13:56
@ghost
Copy link
Author

ghost commented Oct 7, 2019

It's good, #190 will just need the script included after.

@thebaer thebaer added this to the 0.11 milestone Oct 10, 2019
@thebaer thebaer modified the milestones: 0.11, 0.12 Nov 11, 2019
Posts without an explicit title render the date as the post header in
lists of posts (like on the blog index and tag pages). This updates
localdate.js to properly adjust those dates, too.
@thebaer
Copy link
Member

thebaer commented Jan 29, 2020

Also needed to handle cases where posts don't have a title (so the date becomes the clickable title on blog index, tag page). Previously, the script would overwrite the link so you couldn't navigate to the post itself on those pages. All fixed and good to go! Thanks!

@thebaer thebaer merged commit 93dd234 into develop Jan 29, 2020
@thebaer thebaer deleted the T670-local-time branch January 29, 2020 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant