Skip to content

Commit

Permalink
Kibanalink Timezone offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Refsahl committed Nov 8, 2024
1 parent fc47bdf commit 084ecb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/routes/batch-opprett._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function BatchOpprett_index() {
Brevmal kode for Sak
<input
ref={inputRef}
defaultValue="PE_AP_ADHOC_2024_GJR_AP_MNTINDV_2"
defaultValue="ERSTATT MED BREVMAL KODE"
aria-label="Brevmal"
name="brevmal"
type="text"
Expand Down
2 changes: 1 addition & 1 deletion app/services/kibana.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function kibanaLink(behandling: BehandlingDto) {

const adjustToLocalTime = (date: Date) => {
const offset = date.getTimezoneOffset() * minuteMultiplier
return new Date(date.getTime() - offset)
return new Date(date.getTime() + offset)
}

const startTime = adjustToLocalTime(
Expand Down

0 comments on commit 084ecb7

Please sign in to comment.