]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_message.cpp
Add an option to opt-out Firebird store.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_message.cpp
index b4607996cd788dbcb78b004d696c0de34c4cd587..161190f548acdd39e0894258fc6ca858d0d89071 100644 (file)
@@ -26,8 +26,6 @@
 
 #include <cstring>
 
-extern volatile time_t stgTime; // So sad...
-
 using STG::PARSER::SEND_MESSAGE;
 
 const char * SEND_MESSAGE::tag = "Message";
@@ -100,7 +98,7 @@ int SEND_MESSAGE::End(void *, const char *el)
             printfd(__FILE__, "User not found. %s\n", m_logins[i].c_str());
             continue;
         }
-        m_msg.header.creationTime = static_cast<unsigned int>(stgTime);
+        m_msg.header.creationTime = static_cast<unsigned int>(time(NULL));
         m_user->AddMessage(&m_msg);
         m_result = res_ok;
     }