time conversion from float to decimal, fixed time offset bug