Fix the de-coding of datetime to work with the latest replicant library