icp4all
Posts: 37
|
Posted: 08/16/2013, 10:53 PM |
|
Hi all
I would have a time / date in a DB save time as UTC. Does anyone have any idea how that works easiest.
it comes to program an event management for an international gamer community. Therefore, the dates musst be stored in UTC. I use the internationalization feature and therefore also have different input masks for date and time. The time zone of the users I have stored in the user profile (eg "Europe / London")
Server: MySql and PHP 5
thanks in advance
____________________________________
Just found it by myself -> CCDateAdd()
$time_in = $Component->time_test->Getvalue();
$time_in2 =CCDateAdd($time_in, "+7200 second");
$Component->time_test->Setvalue($time_in2);
|
|
|
|