Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time inconsistencies when server timezone != UTC #9

Open
int13h opened this issue Apr 10, 2014 · 0 comments
Open

Time inconsistencies when server timezone != UTC #9

int13h opened this issue Apr 10, 2014 · 0 comments

Comments

@int13h
Copy link
Contributor

int13h commented Apr 10, 2014

In particular this was failing (In SguildGenericDB.tcl):

172 proc UpdateDBStatus { sensorName date sid cid timestamp uid status } {
173
174 global MAIN_DB_SOCKETID
175
176 set tmpDate [clock format [clock scan $date] -gmt true -format "%Y%m%d"]
177 set tableName "event_${sensorName}_$tmpDate"
178 set updateString
179 "UPDATE $tableName SET status=$status, last_modified='$timestamp', last_uid='$uid' WHERE sid=$sid AND cid=$cid"

Wrapping the update in a catch like in proc UpdateDBStatusList stopped the server from crashing (this should probably be done anyway to avoid this) but still causes the autocat status updates to fail until the clock catches up to UTC and the correct event table is created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant