Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIM-1950] MIM-1950:Fikset bug med tidssone for kommende publiseringer #2756

Merged
merged 2 commits into from
May 29, 2024
Merged
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
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'
ssb-cgn marked this conversation as resolved.
Show resolved Hide resolved
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
Loading