From 65525fe99b5b4ce842fe0149c9e9127285d66fbf Mon Sep 17 00:00:00 2001
From: Jonathan Zacsh <jzacsh@gmail.com>
Date: Mon, 29 Aug 2011 14:58:28 -0400
Subject: [PATCH 2/2] Issue #1263590: removed calls to
 chatroom_get_utc_timestamp() and replaced with time();
 also removed the function definition.

---
 chatroom.module |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/chatroom.module b/chatroom.module
index 7599a5c..0cc9a9f 100644
--- a/chatroom.module
+++ b/chatroom.module
@@ -1380,16 +1380,6 @@ function chatroom_get_message_time_string($timestamp) {
 }
 
 /**
- * Return a UTC timestamp.
- *
- * @return int timestamp
- */
-function chatroom_get_utc_timestamp() {
-  $date = new DateTime('now', new DateTimeZone('UTC'));
-  return $date->format('U');
-}
-
-/**
  * Posted messages are handled here.
  *
  * @return boolean
@@ -1436,7 +1426,7 @@ function chatroom_chat_post_message($node, $last_msg_id) {
     'sid' => session_id(),
     'msg_type' => chatroom_chat_get_message_type($_POST['message']),
     'recipient_uid' => 0,
-    'modified' => chatroom_get_utc_timestamp(),
+    'modified' => time(),
     'anon_name' => isset($_POST['anonName']) ? $_POST['anonName'] : '',
   );
   if ($message['msg_type'] == 'command') {
@@ -1714,7 +1704,7 @@ function chatroom_msg_user($node, $to_user, $from_user, $message) {
     'sid' => session_id(),
     'msg_type' => 'private_message',
     'recipient_uid' => $to_user->uid,
-    'modified' => chatroom_get_utc_timestamp(),
+    'modified' => time(),
     'anon_name' => '',
   );
   return chatroom_chat_save_message($private_message_data, $node);
-- 
1.7.6.1

