Browse Source

add week day to history

Daniel Sheffield 1 week ago
parent
commit
6348c5748c
1 changed files with 9 additions and 0 deletions
  1. 9 0
      site/timesheet_history.sql

+ 9 - 0
site/timesheet_history.sql

@@ -17,6 +17,15 @@ SELECT 'table' AS component
 , 'History' AS title
 ;
 SELECT date
+, CASE EXTRACT(dow FROM date)
+  WHEN 0 THEN 'Sunday'
+  WHEN 1 THEN 'Monday'
+  WHEN 2 THEN 'Tuesday'
+  WHEN 3 THEN 'Wednesday'
+  WHEN 4 THEN 'Thursday'
+  WHEN 5 THEN 'Friday'
+  WHEN 6 THEN 'Saturday'
+  END
 , total
 , total_hours
 FROM timesheet