From 9634cc6c771684af5e277b144620799c27f63cf8 Mon Sep 17 00:00:00 2001 From: Robert Jandow Date: Wed, 15 May 2024 17:35:44 +0200 Subject: [PATCH] Add type hint for datetime and missing to string conversions --- proposal_template.typ | 4 ++-- thesis_template.typ | 4 ++-- thesis_typ/disclaimer.typ | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/proposal_template.typ b/proposal_template.typ index 6018c3c..c91b84e 100644 --- a/proposal_template.typ +++ b/proposal_template.typ @@ -9,8 +9,8 @@ supervisor: "", advisors: (), author: "", - startDate: none, - submissionDate: none, + startDate: datetime, + submissionDate: datetime, body, ) = { // Set the document's basic properties. diff --git a/thesis_template.typ b/thesis_template.typ index 98c61a6..95eaeac 100644 --- a/thesis_template.typ +++ b/thesis_template.typ @@ -6,8 +6,8 @@ supervisor: "", advisors: (), author: "", - startDate: none, - submissionDate: none, + startDate: datetime, + submissionDate: datetime, body, ) = { set page( diff --git a/thesis_typ/disclaimer.typ b/thesis_typ/disclaimer.typ index b848986..c28ced7 100644 --- a/thesis_typ/disclaimer.typ +++ b/thesis_typ/disclaimer.typ @@ -32,7 +32,7 @@ grid( columns: 2, gutter: 1fr, - "Munich, " + submissionDate, author + "Munich, " + submissionDate.display("[day].[month].[year]"), author ) pagebreak()