Skip to content

Commit 2833231

Browse files
committed
fix: Ideally actually fix the timestamp issue now
1 parent 36477f7 commit 2833231

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/pages/events/mod-garden/nature.astro

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,39 +134,44 @@ const showcaseEnd = "2025-10-10T00:00:00Z";
134134
<ol class="relative border-s border-leaf-600 dark:border-leaf-200">
135135
<li class="mb-[19.5%] ms-4">
136136
<div class="absolute w-3 h-3 bg-pine-500 rounded-full mt-1.5 -start-1.5 dark:bg-pine-700"></div>
137-
<time datetime={isoTime(planningStart)} data-start-time={planningStart} class="mb-1 text-sm font-normal leading-none italic">{formatTime(planningStart)} - {formatTime(planningEnd)}</time>
137+
<time datetime={isoTime(planningStart)} data-start-time={planningStart} data-end-time={planningEnd}
138+
class="mb-1 text-sm font-normal leading-none italic">{formatTime(planningStart)} - {formatTime(planningEnd)}</time>
138139
<h3 class="text-lg font-semibold text-gray-900 dark:text-white">Planning Stage</h3>
139140
<p class="text-base font-normal">
140141
Here you can sign up, and start planning your project. This is the time to start forming teams, planning ideas and general brainstorming.
141142
</p>
142143
</li>
143144
<li class="mb-[19.5%] ms-4">
144145
<div class="absolute w-3 h-3 bg-pine-500 rounded-full mt-1.5 -start-1.5 dark:bg-pine-700"></div>
145-
<time datetime={isoTime(developmentStart)} data-start-time={developmentStart} class="mb-1 text-sm font-normal leading-none italic">{formatTime(developmentStart)} - {formatTime(tweakStart)}</time>
146+
<time datetime={isoTime(developmentStart)} data-start-time={developmentStart} data-end-time={tweakStart}
147+
class="mb-1 text-sm font-normal leading-none italic">{formatTime(developmentStart)} - {formatTime(tweakStart)}</time>
146148
<h3 class="text-lg font-semibold text-gray-900 dark:text-white">Development Stage</h3>
147149
<p class="text-base font-normal">
148150
This is when you start working on your project(s). You should be submitted to Modrinth by the end of this stage.
149151
</p>
150152
</li>
151153
<li class="mb-[19.5%] ms-4">
152154
<div class="absolute w-3 h-3 bg-pine-500 rounded-full mt-1.5 -start-1.5 dark:bg-pine-700"></div>
153-
<time datetime={isoTime(tweakStart)} data-start-time={tweakStart} class="mb-1 text-sm font-normal leading-none italic">{formatTime(tweakStart)} - {formatTime(buildStart)}</time>
155+
<time datetime={isoTime(tweakStart)} data-start-time={tweakStart} data-end-time={buildStart}
156+
class="mb-1 text-sm font-normal leading-none italic">{formatTime(tweakStart)} - {formatTime(buildStart)}</time>
154157
<h3 class="text-lg font-semibold text-gray-900 dark:text-white">Tweak Stage</h3>
155158
<p class="text-base font-normal">
156159
This period is all about fixing bugs, and integrating with other mods to have cross compatibility. Extensions will last until the end of the first week of this phase.
157160
</p>
158161
</li>
159162
<li class="mb-[19.5%] ms-4">
160163
<div class="absolute w-3 h-3 bg-pine-500 rounded-full mt-1.5 -start-1.5 dark:bg-pine-700"></div>
161-
<time datetime={isoTime(buildStart)} data-start-time={buildStart} class="mb-1 text-sm font-normal leading-none italic">{formatTime(buildStart)} - {formatTime(buildEnd)}</time>
164+
<time datetime={isoTime(buildStart)} data-start-time={buildStart} data-end-time={buildEnd}
165+
class="mb-1 text-sm font-normal leading-none italic">{formatTime(buildStart)} - {formatTime(buildEnd)}</time>
162166
<h3 class="text-lg font-semibold text-gray-900 dark:text-white">Building Stage</h3>
163167
<p class="text-base font-normal">
164168
This stage is optional, but if you want to build a booth for your project, this is the time to do it.
165169
</p>
166170
</li>
167171
<li class="ms-4">
168172
<div class="absolute w-3 h-3 bg-pine-500 rounded-full mt-1.5 -start-1.5 dark:bg-pine-700"></div>
169-
<time datetime={isoTime(showcaseStart)} data-start-time={showcaseStart} class="mb-1 text-sm font-normal leading-none italic">{formatTime(showcaseStart)} - {formatTime(showcaseEnd)}</time>
173+
<time datetime={isoTime(showcaseStart)} data-start-time={showcaseStart} data-end-time={showcaseEnd}
174+
class="mb-1 text-sm font-normal leading-none italic">{formatTime(showcaseStart)} - {formatTime(showcaseEnd)}</time>
170175
<h3 class="text-lg font-semibold text-gray-900 dark:text-white">Showcase Stage</h3>
171176
<p class="text-base font-normal">
172177
This is when the event server is up and running, where you and players can visit booths for all the projects. Players may vote for mods and awards are given in this stage. The server will still be up for some time after this phase ends.
@@ -228,7 +233,8 @@ const showcaseEnd = "2025-10-10T00:00:00Z";
228233
let timelineEntries = Array.from(document.querySelectorAll("[data-start-time]"));
229234
timelineEntries.forEach((entry) => {
230235
const startTime = entry.getAttribute("data-start-time");
231-
entry.setAttribute("datetime", Moment(startTime).toISOString());
236+
const endTime = entry.getAttribute("data-end-time");
237+
entry.textContent = `${Moment(startTime).format("MM/D/YYYY h:mm A") } - ${Moment(endTime).format("MM/D/YYYY h:mm A")}`;
232238
});
233239

234240
</script>

0 commit comments

Comments
 (0)