remove use of date() in chart_data() because not supported by TinyTDS