Skip to content

Commit

Permalink
Merge branch 'main' of github.com:gdgbari/2024-web-devfest
Browse files Browse the repository at this point in the history
  • Loading branch information
bonfry committed Oct 17, 2024
2 parents 3f985db + 324c300 commit 4907ce0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .astro/astro/content.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,5 +398,5 @@ declare module 'astro:content' {

type AnyEntryMap = ContentEntryMap & DataEntryMap;

export type ContentConfig = typeof import("./../../src/content/config.js");
export type ContentConfig = typeof import("../../src/content/config.js");
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"devDependencies": {
"daisyui": "^4.12.10",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1"
"prettier-plugin-astro": "^0.14.1"
}
}
14 changes: 11 additions & 3 deletions src/components/Speakers/Pages/SpeakerDetail.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import SpeakersLinks from "../../../components/Speakers/SpeakersLinks.astro";
import { WebsiteConfig } from "../../../config";
import { getLangFromUrl, useTranslatedPath, useTranslations } from "../../../i18n/utils";
import { type Speaker } from "../../../data/types/sessionize";
import { formatTime } from "../../../helpers/time";
import SessionTopic from "../../Sessions/SessionTopic.astro";
import { getSpeakers } from "../../../data/repositories/sessionize_repository";
// 1. Generate a new path for every collection speaker
Expand Down Expand Up @@ -75,8 +74,17 @@ const pageTitle = `${speaker.fullName} @ ${WebsiteConfig.DEVFEST_NAME}`;
month: "long",
day: "numeric",
});
const startTime = formatTime(dateStart);
const endTime = formatTime(dateEnd);
const startTime = dateStart.toLocaleTimeString(lang, {
timeZone: WebsiteConfig.EVENT_TIMEZONE,
hour: "numeric",
minute: "numeric",
});

const endTime = dateEnd.toLocaleTimeString(lang, {
timeZone: WebsiteConfig.EVENT_TIMEZONE,
hour: "numeric",
minute: "numeric",
});
const isScheduled = dateStart.getTime() > 0;
return (
<a class="flex flex-col" href={getPath(`/sessions/${session.slug}`)}>
Expand Down
9 changes: 0 additions & 9 deletions src/helpers/time.ts

This file was deleted.

0 comments on commit 4907ce0

Please sign in to comment.