LibSyncTime-1.0
LibSyncTime-1.0 is a light-weight solution that provides a server-side UNIX timestamp useful for synchronizing data across clients in multiple timezones or with non-synchronized system clocks.
LibSyncTime uses a single, simple API call:
LibSyncTime-1.0 API
curtime, uncertain = LibStub("LibSyncTime-1.0"):synctime()
Returns
curtime
This is the current server-side UNIX timestamp
uncertain
This boolean being true indicates that no second-level precision is guaranteed on the return value. This means that no time sync has been recieved and no server time change has been observed since UI load.
For WoW 5.0.4/MoP replace lines 39->41
with
If you get error with the MoP beta client:
replace
GetRealNumPartyMembers()
with
GetNumGroupMembers(LE_PARTY_CATEGORY_HOME)
here is bug report from bugsack. hope, it helps:
One of the prefixes is longer than 16chars (exceeding the 4.1 prefix length limit).
Maybe shortening both to LibSyncTimeRQ and LibSyncTimeSC from
LibSyncTimeRequest and LibSyncTimeSync respectively.
Hehe, np, no more error on reload. Thanks. :)
Sorry for being away over the holidays. Fixed. (I think).
ReloadUI() leads to:
2x LibSyncTime-1.0-2:28: attempt to perform arithmetic on field 'lastMinuteChange' (a nil value)
Locals:
-