Is there any chance you can do `day(date_time)` eq...
# exposed
m
Is there any chance you can do
day(date_time)
equivalent in exposed?
Trying to write this:
Copy code
sql
SELECT SUM(runtime) as total_runtime, last_updated
                        FROM sessions
                        WHERE last_updated >= NOW() - INTERVAL 7 DAY
                        GROUP BY day(last_updated)
t
There is PR to allow call any custom function, but right now you can create it in your code. Just look how Month class is implemented
m
Thanks