I've an application,say the end user might be from any country but when he does some action,i want the date to be shown in a particular time zone.
I want insert this into DB so i'm doing this using date_default_timezone_set(''); with date()
Is this the right way or should i use gmdate() and add time zone.
Thanks
gmdate()and then adjust for your timezone, as Jesse Bunch mentioned in his answer.