Skip to content

Commit

Permalink
Add fractional part of seconds to datetime parser
Browse files Browse the repository at this point in the history
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 3cb4bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/defaultfilters/datetime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3cb4bd2

Please sign in to comment.