This is to be more portable, to solve problem when database server time differs from PHP server and to prepare for TZ support.