fix bug with date display in js/php  due to timezones