Sanity Check on setting date and time

  • Thread starter Thread starter Dannymh
  • Start date Start date

Dannymh

Guest
Member
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:

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
Sanity Check on setting date and time

free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
Top