-
Notifications
You must be signed in to change notification settings - Fork 12
Add a toggle to add timestamps to relative dates #292
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
Changes from 8 commits
62b66d0
2e2159b
77a38ed
923d310
aae9814
f89c717
de453be
4d81088
7e5afe1
e4739c1
d132541
28a2318
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,10 @@ | ||
| # Changelog | ||
|
|
||
| ## [1.5.16] - 2025-12-18 | ||
|
|
||
| ### Added | ||
| - Added timestamp toggle in sidebar to show/hide absolute timestamps alongside GitHub's relative timestamps | ||
|
|
||
| Check out the K2 repo on GitHub to see what's new! | ||
|
|
||
| https://github.com/Expensify/k2-extension |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,11 @@ export default function () { | |
| $('nav.js-repo-nav *[data-selected-links*="repo_pulls"]') | ||
| .parent().after(k2Button({url: currentUrl})); | ||
| } | ||
|
|
||
| // Set up timestamp format conversion | ||
| const applyTimestampFormatPeriodic = AllPages.applyTimestampFormat(); | ||
dangrous marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| setTimeout(() => applyTimestampFormatPeriodic(), 500); | ||
| setInterval(() => applyTimestampFormatPeriodic(), 2000); | ||
|
||
| }; | ||
|
|
||
| return AllPages; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to manually update these anymore. There is a GH action that will automatically bump them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I realized that afterwards haha