Skip to content

Commit 3cb4bd2

Browse files
committed
Add fractional part of seconds to datetime parser
Some recent Qt version must have changed the output of QDateTime represented as a string to include that.
1 parent 1b4f224 commit 3cb4bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/defaultfilters/datetime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ QVariant DateFilter::doFilter(const QVariant &input, const QVariant &argument,
8989
{
9090
Q_UNUSED(autoescape)
9191
auto d = QDateTime::fromString(getSafeString(input),
92-
QStringLiteral("yyyy-MM-ddThh:mm:ss"));
92+
QStringLiteral("yyyy-MM-ddThh:mm:ss.zzz"));
9393

9494
auto argString = getSafeString(argument);
9595

0 commit comments

Comments
 (0)