Plugin Author
berkux
(@berkux)
Hi,
good point. Yet the plugin / twig can’t do this as it uses the default PHP date.
I’ll add this in the next pro-version by an twig-extension.
This will take some time—
Bernhard
Hi Benhard,
Many thanks for your quick work on this.
I tested it out:
url: https://data.sportlink.com/programma?client_id=FSSFj408zh&teamcode=32468&aantalregels=1
{{ item.kaledatum | dateformat(‘%A %d.%m/%y’, ‘Europe/Berlin’, ‘nl_NL’) }}
I don’t get the result I hoped fot, can you check this?
It should also be nice if we can use: D (this are the first 3 chars off a day)
Is it also possible to use date and use it like this:
{{item.kaledatum | date(‘D d.m.y ‘ , ‘Europe/Berlin’, ‘nl_NL’)}}
expected output: Din 17.01.17
Many thanks!
Plugin Author
berkux
(@berkux)
Hi,
you’re right. dateformat can only handle unix-timestamps in this version. But this is easy to fix. The next version will handle the format of the date in this JSON. This will be on next friday.
Bernhard
Many thanks Bernhard. It is working perfectly.