fixed wrong array offset for date