Time Source

What source to use for the time. This can be (for now) either the local system (System) or database (Database).

This is useful when your database is not on the same system as your webserver or your servers. In that case any time difference will miscalculate the time differences and timestamps. You should use NTP to sync all your servers and your MySQL server. By using these preferences you don't have to sync your webserver but it's still recommended.

Feel free to implement more sources (eg: ntp, ldap, $_SERVER...).

Note: The database query will be cached the first time it's called so the time will always be the same on a page load throughout, while System time is returned whenever the function is called, which might differ slightly (especially near the ending of a second).

These examples are all returning Unixtime

"timestamp"); ?> Current System time:
Current Database time:
Your browser time: