fixed JDate depricated function