PHP Code:
// Generates GMT Date and compensates for timezones
char GetGmtDate()
{
int timestamp = GetTime();
// Fix timezones
char offsetstr[10];
FormatTime(offsetstr, sizeof(offsetstr), "%z", timestamp);
timestamp -= (StringToInt(offsetstr) / 100) * 3600;
// Build sring
char GMTTime[40];
FormatTime(GMTTime, sizeof(GMTTime), "%a, %d %h %Y %H:%M:%S GMT", timestamp);
return GMTTime;
}