split messages from the same author after 10 mins

This commit is contained in:
ouwou
2021-04-12 02:21:26 -04:00
parent 244726fc66
commit bf9b053d36
5 changed files with 11 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ bool Snowflake::IsValid() const {
}
std::string Snowflake::GetLocalTimestamp() const {
const time_t secs_since_epoch = (m_num / 4194304000) + 1420070400;
const time_t secs_since_epoch = (m_num / SecondsInterval) + DiscordEpochSeconds;
const std::tm tm = *localtime(&secs_since_epoch);
std::stringstream ss;
const static std::locale locale("");