From 752817ae74607ca23ec0aad51824ddca66faa7a8 Mon Sep 17 00:00:00 2001 From: Laurenz Stampfl <47084093+LaurenzV@users.noreply.github.com> Date: Tue, 23 May 2023 10:41:20 +0200 Subject: Add support for date & time handling (#435) --- docs/src/html.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/src/html.rs') diff --git a/docs/src/html.rs b/docs/src/html.rs index a3db6393..e0b524ce 100644 --- a/docs/src/html.rs +++ b/docs/src/html.rs @@ -5,6 +5,7 @@ use md::escape::escape_html; use pulldown_cmark as md; use typed_arena::Arena; use typst::diag::FileResult; +use typst::eval::Datetime; use typst::font::{Font, FontBook}; use typst::geom::{Point, Size}; use typst::syntax::{Source, SourceId}; @@ -489,4 +490,8 @@ impl World for DocWorld { .contents() .into()) } + + fn today(&self, _: Option) -> Option { + Some(Datetime::from_ymd(1970, 1, 1).unwrap()) + } } -- cgit v1.2.3