0

I'm using an Openfire server to support Jabber chat between Spark clients. I want to use GitHub's Hubot to monitor chatrooms and listen for users to send messages to Hubot, then log the messages. I'm having a hard time figuring out how I can get the timestamp of the message from the point of view of the Openfire server... is this even possible or should I just use the system time of the system running Hubot?

Bryan
  • 2,205
  • 1
  • 23
  • 43

1 Answers1

1

Use the system time of the receiving process. Only messages that were stored before you join a room will have timestamps with the server time.

Joe Hildebrand
  • 10,354
  • 2
  • 38
  • 48