When I have this code in an *.adoc
file in awestruct:
This website was generated on {localdatetime}.
I get:
This website was generated on 2015-11-30 11:01:50 CET.
But I want it nicely formatted like this:
This website was generated on Fri 11 November 2015 11:01:50 CET.
I tried these, but they don't work:
This website was generated on #{Time.now.strftime('%a %-d %B %Y')}.
This website was generated on #{localdatetime.strftime('%a %-d %B %Y')}.
which is strange, because calling Ruby methods with #{rubyVariable.someMethod()}
in adoc files does work.