diff --git a/webtemplate.d b/webtemplate.d index c5d6ee0..cfb9d36 100644 --- a/webtemplate.d +++ b/webtemplate.d @@ -50,6 +50,7 @@ Document renderTemplate(string templateName, var context = var.emptyObject, var }; context.dayOfWeek = function string(string s) { + import std.datetime; return daysOfWeekFullNames[DateTime.fromISOExtString(s).dayOfWeek]; };