Skip to content
Permalink
Browse files

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.
  • Loading branch information...
steveire committed Apr 15, 2019
1 parent 1b4f224 commit 3cb4bd24e127b7f55d463d934cad27f8c07c4406
Showing with 1 addition and 1 deletion.
  1. +1 −1 templates/defaultfilters/datetime.cpp
@@ -89,7 +89,7 @@ QVariant DateFilter::doFilter(const QVariant &input, const QVariant &argument,
{
Q_UNUSED(autoescape)
auto d = QDateTime::fromString(getSafeString(input),
QStringLiteral("yyyy-MM-ddThh:mm:ss"));
QStringLiteral("yyyy-MM-ddThh:mm:ss.zzz"));

auto argString = getSafeString(argument);

0 comments on commit 3cb4bd2

Please sign in to comment.
You can’t perform that action at this time.