[Tutorial] Storing player chat log in MySQL, automatic deletion and periodic backups
#2

Use of the datetime field is up for discussion. I've always preferred regular Unix timestamps. In any case you should use UTC_TIMESTAMP() rather than NOW(). The latter one gets the local server time, which can lead to inconsistencies if migrating the server to another country (e.g. from Europe to the US) or even if trying to display data in the user's local time.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)