diff --git a/Sources/HTMLKit/DateVariable.swift b/Sources/HTMLKit/DateVariable.swift
index a4f6351d..2b722311 100644
--- a/Sources/HTMLKit/DateVariable.swift
+++ b/Sources/HTMLKit/DateVariable.swift
@@ -51,6 +51,9 @@ struct DateVariable: CompiledTemplate {
throw Errors.unableToCopyFormatter
}
formatterCopy.locale = .init(identifier: locale)
+ // Used to bypass a Linux bug
+ formatterCopy.dateStyle = formatter.dateStyle
+ formatterCopy.timeStyle = formatter.timeStyle
return formatterCopy.string(from: date)
} else {
return formatter.string(from: date)