WoWInterface SVN OpenRDX

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/VFL/Timers
    from Rev 627 to Rev 658
    Reverse comparison

Rev 627 → Rev 658

Epoch.lua
85,7 → 85,7
local kernelTime, localTime = GetTime(), time();
sysEpoch = VFLT.Epoch:new();
sysEpoch:Synchronize(kernelTime, localTime, h, m);
VFL:Debug(1,"System epoch established!");
VFL.print("|cFFFFFFFF[VFL]|r System epoch established!");
sysEpoch:Dump();
kernelToServer = sysEpoch:GetKernelTimeCorrection();
VFLEvents:Dispatch("SYSTEM_EPOCH_ESTABLISHED", sysEpoch);
125,13 → 125,13
-- Convert back to hours.
tz = VFL.round(tz/60);
-- Print info
--VFL.print("|cFFFFFFFF[VFL]|r Local time is |cFF00FF00" .. today.hour .. ":" .. today.min .. "|r, server time is |cFF00FF00" .. sh .. ":" .. sm .. "|r");
--VFL.print("|cFFFFFFFF[VFL]|r Autodetected time difference: Server = Local + |cFF00FF00" .. tz .. " hours|r");
VFL.print("|cFFFFFFFF[VFL]|r Local time is |cFF00FF00" .. today.hour .. ":" .. today.min .. "|r, server time is |cFF00FF00" .. sh .. ":" .. sm .. "|r");
VFL.print("|cFFFFFFFF[VFL]|r Autodetected time difference: Server = Local + |cFF00FF00" .. tz .. " hours|r");
-- Allow the timezone to be directly overridden.
if not VFLConfig then VFLConfig = {}; end
if VFLConfig.overrideTZ then
tz = VFLConfig.overrideTZ;
--VFL.print("|cFFFFFFFF[VFL]|r Override timezone: |cFF00FF00" .. tz .. " hours|r");
VFL.print("|cFFFFFFFF[VFL]|r Override timezone: |cFF00FF00" .. tz .. " hours|r");
end
 
-- Figure out the projected server time based on the server time offset.
145,7 → 145,7
local diff = math.abs(projServerTime - serverTime);
VFL:Debug(1, "* Time discrepancy of " .. diff .. "s detected.");
if(diff > 3600) then
--VFL.print("|cFFFFFFFF[VFL]|r Clock discrepancy of |cFFFF0000" .. diff .. " seconds|r detected. Your time zone may be set incorrectly. Use /timezone to set your timezone manually.");
VFL.print("|cFFFFFFFF[VFL]|r Clock discrepancy of |cFFFF0000" .. diff .. " seconds|r detected. Your time zone may be set incorrectly. Use /timezone to set your timezone manually.");
end
 
-- Get a time fix