Bug in sprintf date return corrected