Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/activity-graph-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,12 @@ export default function ActivityGraphElement({
const level = isDateInRange(currentDate)
? calculateActivityLevel(dateKey)
: "disabled";
const text = `${currentDate.toLocaleDateString(lang)} – Activities: ${
activityData[dateKey] || 0
}`;
const text = `${currentDate.toLocaleString(lang, {
timeZone: 'UTC',
year: 'numeric',
month: '2-digit',
day: '2-digit'
})} – Activities: ${activityData[dateKey] || 0}`;
Comment on lines +143 to +148
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const text = `${currentDate.toLocaleString(lang, {
timeZone: 'UTC',
year: 'numeric',
month: '2-digit',
day: '2-digit'
})} Activities: ${activityData[dateKey] || 0}`;
const text = `${currentDate.toLocaleString(lang, {
timeZone: 'UTC'
})} Activities: ${activityData[dateKey] || 0}`;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this work as well?

bodyRows[d].push(
html`<td class="day level-${level}" title="${text}">
<span class="sr-only">${text}</span>
Expand Down