How about, this way ?
PHP Code:
#include <sdktools>
public void OnPluginStart()
{
RegConsoleCmd("sm_test", test);
}
public Action test(int client, int args)
{
char buffer[60];
FormatTime(buffer, sizeof(buffer), "%z");
// Example "%Z", output: "FLE Daylight Time"
// **** Standard Time = disabled, Daylight Saving Time (DST)
// **** Daylight Time = enabled, Daylight Saving Time (DST)
int offset = StringToInt(buffer);
int minutes = offset % 100; // 0 - 99
int hours = offset / 100;
offset = (hours*3600) + (minutes*60);
PrintToServer("FormatTime UTC%s, offset %i seconds", buffer, offset);
return Plugin_Handled;
}
*edit
And... GetTime() returns UNIX time, which is UTC-0.
But FormatTime returns with timezone+dts.