NSA
sudo apt-get thefuckout.tar.gz
- Dec 9, 2011
- 715
- 86
Hello!
I've been trying to set it so PHP will display time formatted for the user using an application.
You see here:
This says I sent a message at "21:50" however, my time was at "02:50" when it was sent. Now, obviously this is because this was the server time, but how can I get PHP to put the time it was sent from the user "IN SERVER TIME" but display it in "LOCAL TIME"?
So, in the database, this would still be displayed as "21:50", but on my screen it would say "02:50".
If anyone can help me with this, It'd be greatly appreciated.
Thanks.
I've been trying to set it so PHP will display time formatted for the user using an application.
You see here:
This says I sent a message at "21:50" however, my time was at "02:50" when it was sent. Now, obviously this is because this was the server time, but how can I get PHP to put the time it was sent from the user "IN SERVER TIME" but display it in "LOCAL TIME"?
So, in the database, this would still be displayed as "21:50", but on my screen it would say "02:50".
If anyone can help me with this, It'd be greatly appreciated.
Thanks.