Remove GMT from local time (CLOSED)

hi everyone is there a way to remove the GMT from the end of my Local Time
its displayed as 2017-12-13 11:20:44 GMT i would like to remove the GMT so it can be matched up in rules with my Local Sun Start time that is displayed as 2017-12-13 08:15

i could then use the rule engine to make a simple rule to turn off lights when these two are equal

I don’t know how to remove the GMT string but if your local sun start time is from the Astro binding why not triggering directly at that event with the range channel trigger?

I’m don’t know what the range trigger channel is lol

and yes its come from the astro binding

That is easy to solve, read the docs:

So if you have configured a thing for the astro binding astro:sun:home you will have a range channel available called astro:sun:home:set#event which represents the time on your geo location where the sun goes down you can easily trigger on

rule "switch lights off"
    Channel 'astro:sun:home:set#event' triggered START