added support for php timestamps