Fixed #23914 -- Improved {% now %} to allow storing its result in the context.

Thanks to Tim for the review.