CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 save Date /time in UTC [SOLVED]

Print topic Send  topic

Author Message
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);
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.