Skip to content

Commit

Permalink
[MIM-1950] MIM-1950:Fikset bug med tidssone for kommende publiseringer (
Browse files Browse the repository at this point in the history
#2756)

MIM-1950:Fikset bug med tidssone for kommende publiseringer
  • Loading branch information
ssb-cgn authored and Carl-OW committed May 31, 2024
1 parent 581e4af commit 50a3cf2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState } from 'react'
import { Button, Link } from '@statisticsnorway/ssb-component-library'
import axios from 'axios'
import { ChevronDown } from 'react-feather'
import { parseISO } from 'date-fns/parseISO'
import { sanitize } from '../../../lib/ssb/utils/htmlUtils'
import { type UpcomingReleasesProps } from '../../../lib/types/partTypes/upcomingReleases'
import { type PreparedUpcomingRelease, type YearReleases } from '../../../lib/types/variants'
Expand Down Expand Up @@ -227,7 +228,7 @@ function UpcomingReleases(props: UpcomingReleasesProps) {
}

function renderDay(dayWithReleases, language, isFirst, statisticsPageUrlText) {
const date = new Date(dayWithReleases.date)
const date = parseISO(dayWithReleases.date)
const releaseDate = {
day: date.getDate(),
monthName: getShortMonthName(date.getMonth(), language),
Expand Down

0 comments on commit 50a3cf2

Please sign in to comment.