A bit of background:
My site is highly dependent on user coordination across all different time zones.
I use Carbon to process my time zones and server-side and moment.js calculations on the client.
As a result, a design choice was made so that all time dates (for example, the time the event started) were saved as unix timestamps.
Problem
I am a little confused by the definition of "timestamp". In PHPMyAdmin, the timestamp is not a unix timestamp, but rather a date format:
2016-10-06 20:50:46
So, if you want to have the default field of the current timestamp, you get the current date in GMT.
This complicates the conversion back to the user's timezone compared to the integer timestamp unix ...
Question:
What type of field should my unix timestamps store, since I'm currently using int(11) with a default value of none . By extension ... is there a way to keep the current unix timestamp (e.g. 1475971200) by default in MySQL?
source share