Create a parameter to save time in GMT time

To convert the time to GMT time add the time differences to DATE_NOW

If you are in the Pacific Standard Time zone, GMT is 8 hours ahead of PST. In order to get to GMT time, add 28000 seconds (8 hr * 60 min * 60 sec ) to Pacific Standard time.

Example:

lr_save_datetime("%B", DATE_NOW + 28800, "month");

lr_save_datetime("%d", DATE_NOW + 28800, "day");

lr_save_datetime("%H", DATE_NOW + 28800, "hour");

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s