[formatter] add 'D' conversion

This commit is contained in:
Mike Fährmann
2025-05-28 20:34:35 +02:00
parent 17b2910938
commit 539ed8fef4
3 changed files with 18 additions and 4 deletions

View File

@@ -488,6 +488,7 @@ _CONVERSIONS = {
"L": len,
"T": util.datetime_to_timestamp_string,
"d": text.parse_timestamp,
"D": util.to_datetime,
"U": text.unescape,
"H": lambda s: text.unescape(text.remove_html(s)),
"g": text.slugify,