Skip to content

Commit

Permalink
Set osPatchLevelHuman date to UTC
Browse files Browse the repository at this point in the history
This prevents the date being converted to the browser's
timezone, which was causing any timezone with a negative
offset to show the OS patch level of the previous month.
  • Loading branch information
razorloves authored and luk1337 committed Feb 7, 2024
1 parent 326a320 commit b55a45f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/downloadable/DownloadableItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ export default {
if (this.os_patch_level !== undefined) {
return new Date(this.os_patch_level).toLocaleString('en-US', {
month: 'long',
year: 'numeric'
year: 'numeric',
timeZone: 'UTC'
})
}
return ''
Expand Down

0 comments on commit b55a45f

Please sign in to comment.