View Single Post
08/09/15, 09:33 AM   #3
kerb9729
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 56
Originally Posted by votan View Post
The way I found is:
Lua Code:
  1. local localTimeShift = GetSecondsSinceMidnight() -(GetTimeStamp() % 86400)
  2.   if localTimeShift < -12 * 60 * 60 then localTimeShift = localTimeShift + 86400 end
And yes, GetTimeStamp() is UTC and GetSecondsSinceMidnight() is current clients time including daylight saving.
This is exactly what I needed, thanks very much!
  Reply With Quote