XF 2.1 javascript files and timestamps

optrex

Well-known member
There's a little javascript that outputs an unreadible timestamp 2019-09-15T23:55:47+00:00

The script is here https://github.com/Auroras-live/text.auroras.live/blob/master/index.html

and you can change the timestamp by appending the url with ?format%5bdate%5d%5bformat%5d=d.m.Y%20g:i%20a so it becomes more readable like 15.09.2019 11:55 pm in the example https://v2.api.auroras.live/text?format[date][format]=d.m.Y g:i a

When I put it into my page, the script is on a sidebar widget, so I cant change the url that is fectched to get the correct timstamp format

Can someone help with either:

a) looking at the javascript and providing a code to output the timestamp as I need it
b) provide a code to rewrite the timestamp from the output text file

Cheers
 
Back
Top Bottom