I used SQLite3 as my database, but now I changed it to MySQL. There is one line in my code which is failing now. What is the syntax for MySQL?
<% year = os.ot_daily_date.strftime("%Y")%>
This line is showing the following error:
ActionView::Template::Error (Mysql2::Error: FUNCTION hrms_development.strftime
does not exist: SELECT `overtime_daily_records`.* FROM `overtime_daily_records`
GROUP BY strftime('%Y',ot_daily_date)):