Dates
Dates are not an official JSON type, and as such there are many different implementations. The date format Seatninja uses is ISO1806. For example, November 17, 2000, 1:32:38 AM, in UTC is encoded as "2000-11-17T01:32:38.6836230Z".
Time Zones
Seatninja Consumer API assumes all dates to be in UTC format. The restaurant object has a timezone property that can be referenced to convert the datetime into the restaurant's timezone.
To avoid confusion, dates shown to the customer should always be converted to the restaurant's timezone. Meaning, if customer is in California booking a reservation for a restaurant in New York, the times displayed should be in EST.
Updated almost 6 years ago