***Prometheus**: tooltip for legend format not showing properly [#11516](https://github.com/grafana/grafana/issues/11516), thx [@svenklemm](https://github.com/svenklemm)
***Prometheus**: tooltip for legend format not showing properly [#11516](https://github.com/grafana/grafana/issues/11516), thx [@svenklemm](https://github.com/svenklemm)
***Playlist**: Empty playlists cannot be deleted [#11133](https://github.com/grafana/grafana/issues/11133), thx [@kichristensen](https://github.com/kichristensen)
***Playlist**: Empty playlists cannot be deleted [#11133](https://github.com/grafana/grafana/issues/11133), thx [@kichristensen](https://github.com/kichristensen)
***Switch Orgs**: Alphabetic order in Switch Organization modal [#11556](https://github.com/grafana/grafana/issues/11556)
***Switch Orgs**: Alphabetic order in Switch Organization modal [#11556](https://github.com/grafana/grafana/issues/11556)
returnfmt.Sprintf("extract(epoch from %s) as \"time\"",args[0]),nil
returnfmt.Sprintf("extract(epoch from %s) as \"time\"",args[0]),nil
case"__timeFilter":
case"__timeFilter":
// don't use to_timestamp in this macro for redshift compatibility #9566
iflen(args)==0{
iflen(args)==0{
return"",fmt.Errorf("missing time column argument for macro %v",name)
return"",fmt.Errorf("missing time column argument for macro %v",name)
}
}
returnfmt.Sprintf("extract(epoch from %s) BETWEEN %d AND %d",args[0],m.TimeRange.GetFromAsSecondsEpoch(),m.TimeRange.GetToAsSecondsEpoch()),nil
returnfmt.Sprintf("%s BETWEEN '%s' AND '%s'",args[0],m.TimeRange.GetFromAsTimeUTC().Format(time.RFC3339),m.TimeRange.GetToAsTimeUTC().Format(time.RFC3339)),nil