I would recommend you to use a normal Y-m-d H:i:s format in your databases because it's easier to read than a unix timestamp. Furthermore you can use Carbon for handling dates and timezones in PHP and MomentJS for javascript handling. Sounds like a cool project by the way!
[L5] Dealing with time, timezones and dates in booking, time managing app?
Hello awesome forum!
I am wondering, about time and date, saving in database.
I am working on event booking app Admin, makes events, users, can book place for event. And admin, sees in calendar how many people have booked table and at what time.
Example would be restaurant there are 10 tables, and people can book any table for any amount of time.
Working hours from 10:00 - 19:00. And at the and 2 persons can not book the same table at the same time.
And admin sees, in calendar from what time witch table is booked.
So the question is in what format I should store date time, Unix, Regular format, and how to deal with timezone.
Also maybe, I could use some package or .js to make it less painful :)
Please or to participate in this conversation.