Custom: button-card timezone

I want to show in a custom:button-card the sunrise. But how to get the timezone right. Now time is 1 hour off


custom_fields:
  sunrise: |
    [[[
      var t = states['sun.sun'].attributes.next_rising
      var r = t.slice(12, -16);
      return r
    ]]]

output for this is 06:44 and should be 07:44

found the solution

custom_fields:
  sunrise: |
    [[[
      var sunrise = `<span style="color: white; font-size: 10px;">Sunrise: </span>`
      return sunrise + helpers.formatTime24h(states['sun.sun'].attributes.next_rising)
    ]]]