XenForo
Administrative
- Thread starter
- Admin
- #1
Hi,
I am having some trouble with setting a timestamp. it seems to be setting the timestamp ahead of where it should be. As in I set it with the users timezone, but then read with my timezone it is taking that as a GMT time stamp and setting that.
The Code I am using is
PHP:
Read more
Read more about this Feed . . .
I am having some trouble with setting a timestamp. it seems to be setting the timestamp ahead of where it should be. As in I set it with the users timezone, but then read with my timezone it is taking that as a GMT time stamp and setting that.
The Code I am using is
PHP:
Code:
$tz = new \DateTimeZone(\XF::visitor()->timezone);
$theDate = $this->custom_fields->endDate." ".$this->custom_fields->end_time.":00";
$dateTime = new \DateTime($theDate, $tz)...
Read more
Read more about this Feed . . .