Skip to content

Commit

Permalink
Use Telegram message timestamp not server time
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Jul 25, 2018
1 parent bdfd569 commit 81055d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def self.listen

if rating >= 0 && rating <= 5
Mood::Database.database[:moods].insert({
time: Time.now,
time: Time.at(message.date),
value: rating
})
bot.api.send_message(chat_id: message.chat.id, text: "Got it! It's marked in the books 📚")
Expand Down

0 comments on commit 81055d6

Please sign in to comment.