• Resolved jakoblj

    (@jakoblj)


    Thank you for the widget, exactly what I needed..

    I get a API response with time H:M:S

    Tried datetime to only get hours and minutes but can’t get it to work?

    
    <h3>Avg?ngar fr?n Telefonplan</h5> {subloop-array:Departure:5}<br> {Departure.direction}<br> {Departure.time:datetime,H:i}<br> {/subloop-array:Departure}<br>
    
    Alsp, how to remove parts of the response? I tried to remove everything after first word with: 
    
    Departure:<br>
    {subloop-array:Departure:5}<br>
        direction = {Departure.direction|split(" ", 1)}<br>
        time = {Departure.time|date("H:i")}<br>
    {/subloop-array:Departure}<br>
    serverVersion = {serverVersion}<br>
    
    

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘datetime in template’ is closed to new replies.