fixed the datetime functions in day charts...