I dont know if its something wrong with the function or with my configuration(running on a vps with UTC -3 ) but sstime() doesn't return the correct time for me:
print(time(sstime()))
=
01:52:53 6:07:07
print(time(cettime()))
=
02:30:10 4:30:10
And as i got to imba post on this thread about the same problem i ran the same test you asked him:
print(time(tosec(os.date('!%X')) + tern(math.abs(os.date('*t').yday - 187) < 46, 7200, 3600) % 86400))
=
01:55:49 5:55:49
EDIT: I just took a look again and with some fast tests with the time functions of the library(really fast so i didn't gave much thought to the logic, may be a completely wrong approach) it seems to me that the problem is actually on cetoffset() function, i removed the utcoffset() from the return and it worked as expected.