The exact issuance and expiry times in the device rows' hover titles were rendered in UTC, which reads as wrong to anyone not living there. - Mark the dates with a <time> element carrying the absolute (UTC) timestamp, rather than a custom data attribute whose name claimed to hold local time - Rewrite those titles in the browser's own zone, keeping the server's UTC rendering as the fallback for when JavaScript is unavailable - Only convert values that carry an explicit offset, so a date-only <time> is not read as UTC midnight and shifted onto the previous day - Give the revoke button a little more room from the device name and dates Part of #254
11 lines
439 B
Ruby
11 lines
439 B
Ruby
# Pin npm packages by running ./bin/importmap
|
|
|
|
pin "application", preload: true
|
|
pin "@hotwired/turbo-rails", to: "turbo.min.js", preload: true
|
|
pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
|
|
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
|
|
pin "turbo_stream_animations"
|
|
pin "local_time"
|
|
pin_all_from "app/javascript/controllers", under: "controllers"
|
|
pin "tailwindcss-stimulus-components" # @4.0.3
|