Real API handling and datetime conversions