fixed nested second parameter to date_* functions