You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
I'm using the timesince filter and I'm getting a strange behaviour with these input/templates.
When outputting directly the times they are correct but using them through timesince doesn't work ?
By the way I added support of seconds to timesince which I will propose as a pull request if you're interested in.
Ok, I got it, I didn't convert the time strings into QDateTime instances in the context I gave to Grantlee.
But what is a bit strange is that the behaviour is not the same for the input and the argument:
for the input it's ok to give a ISODate formatted string (which is converted to QDateTime by QVariant::value).
for the argument it must be a QDateTime instance.
Maybe it would be better to have the same behaviour for both ?
Hello.
I'm using the timesince filter and I'm getting a strange behaviour with these input/templates.
When outputting directly the times they are correct but using them through timesince doesn't work ?
By the way I added support of seconds to timesince which I will propose as a pull request if you're interested in.
Regards,
Sébastien Grignard.
example.zip
The text was updated successfully, but these errors were encountered: