hi,
when i insert date time into my database it insert server time not local time how can i change this? even i tried ;

$currntdate = date("F j, Y, g:i a");

which didn't work either..
thanx in advance.

Recommended Answers

All 2 Replies

is this part of a website or running in cli ?

is this part of a website or running in cli ?

website

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.