Skip to content

Commit

Permalink
Merge branch 'feature/dynamic-build-date' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dutscher authored May 2, 2024
2 parents b610771 + f7ee266 commit 5d1e5a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions src/lib/components/buildDate.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script type="ts">
let now = new Date(), month, year;
month = ('' + (now.getMonth() + 1)).padStart(2, '0');
year = now.getFullYear();
const buildDate = [month, year].join('.');
</script>

<p><strong>Stand {buildDate} </strong></p>
7 changes: 4 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import StoredCheckbox from "$lib/components/stored-checkbox.svelte";
import Github from "$lib/components/github.svelte";
import StoredCheckbox from "$lib/components/stored-checkbox.svelte";
import Github from "$lib/components/github.svelte";
import BuildDate from '$lib/components/buildDate.svelte';
</script>

<svelte:head>
Expand Down Expand Up @@ -144,4 +145,4 @@
label="Menüs und Overlays können via ESC-Taste wieder geschlossen werden"
/>

<p><strong>Stand 02.2024</strong></p>
<BuildDate />

0 comments on commit 5d1e5a7

Please sign in to comment.