Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/DatabaseUtils.py
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/DatabaseUtils.py	(revision 39490)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/DatabaseUtils.py	(working copy)
@@ -189,7 +189,7 @@
     ]
 
     def get_date_for_db_name(self):
-        now = time.asctime( time.localtime(time.time()) )
+        now = time.asctime( time.gmtime(time.time()) )
         now_date = datetime.strptime(now, '%a %b %d %H:%M:%S %Y')
         db_name = now_date.strftime('%Y-%m-%d') + '.db'
         return db_name
Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/SSLStatFacade.py
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/SSLStatFacade.py	(revision 39490)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/SSLStatFacade.py	(working copy)
@@ -23,8 +23,7 @@
     def __init__(self, from_time, gz_directory="/var/crash"):
         self.gz_directory = gz_directory
         self.start_time = self.get_start_time(from_time)
-        now = time.asctime( time.localtime(time.time()) )
-        self.end_time = datetime.strptime(now, '%a %b %d %H:%M:%S %Y')
+        self.end_time = datetime.utcnow()
         self.directory_to_extract_to = os.path.join(os.getcwd(), "tmp", "sslmonitor")
         self.format_data_list = None
     def get_data(self):
@@ -68,7 +67,7 @@
         from_time is string type, which might be now-1h, now-2h, now-6h, now-1d, now-1w, or now-1M
         return datetime object based on from_time
         '''
-        current_date_time = datetime.now()
+        current_date_time = datetime.utcnow()
         period = from_time.split("-")[1]
         match = re.match(r'(\d+)[hdwM]+', period)
         period_number = int(match.group(1))
Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/TCPResetCount.py
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/TCPResetCount.py	(revision 39490)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/TCPResetCount.py	(working copy)
@@ -11,8 +11,7 @@
 
     def __init__(self, from_time):
         self.start_time = self.get_start_time(from_time)
-        now = time.asctime( time.localtime(time.time()) )
-        self.end_time = datetime.strptime(now, '%a %b %d %H:%M:%S %Y')
+        self.end_time = datetime.utcnow()
     def get_data_from_db(self, type):
         """
         Get data from sqlite db by start time and type
@@ -55,7 +54,7 @@
         from_time is string type, which might be now-1h, now-2h, now-6h, now-1d, now-1w, or now-1M
         return datetime object based on from_time
         '''
-        current_date_time = datetime.now()
+        current_date_time = datetime.utcnow()
         period = from_time.split("-")[1]
         match = re.match(r'(\d+)[hdwM]+', period)
         period_number = int(match.group(1))
Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/TCPSYNDropStat.py
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/TCPSYNDropStat.py	(revision 39490)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/TCPSYNDropStat.py	(working copy)
@@ -21,8 +21,7 @@
     def __init__(self, from_time, gz_directory="/var/crash"):
         self.gz_directory = gz_directory
         self.start_time = self.get_start_time(from_time)
-        now = time.asctime( time.localtime(time.time()) )
-        self.end_time = datetime.strptime(now, '%a %b %d %H:%M:%S %Y')
+        self.end_time = datetime.utcnow()
         self.directory_to_extract_to = os.path.join(os.getcwd(), "tmp", "sslmonitor")
         self.format_data_list = None
     def get_data(self):
@@ -66,7 +65,7 @@
         from_time is string type, which might be now-1h, now-2h, now-6h, now-1d, now-1w, or now-1M
         return datetime object based on from_time
         '''
-        current_date_time = datetime.now()
+        current_date_time = datetime.utcnow()
         period = from_time.split("-")[1]
         match = re.match(r'(\d+)[hdwM]+', period)
         period_number = int(match.group(1))
Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/TCPStatistics.py
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/TCPStatistics.py	(revision 39490)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/TCPStatistics.py	(working copy)
@@ -33,8 +33,7 @@
 
     def __init__(self, from_time):
         self.start_time = self.get_start_time(from_time)
-        now = time.asctime( time.localtime(time.time()) )
-        self.end_time = datetime.strptime(now, '%a %b %d %H:%M:%S %Y')
+        self.end_time = datetime.utcnow()
 
     def get_data_from_db(self, type):
         """
@@ -87,7 +86,7 @@
         from_time is string type, which might be now-1h, now-2h, now-6h, now-1d, now-1w, or now-1M
         return datetime object based on from_time
         '''
-        current_date_time = datetime.now()
+        current_date_time = datetime.utcnow()
         period = from_time.split("-")[1]
         match = re.match(r'(\d+)[hdwM]+', period)
         period_number = int(match.group(1))
Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/write_monitor_to_db.py
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/write_monitor_to_db.py	(revision 39490)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/hive/monitor_log/write_monitor_to_db.py	(working copy)
@@ -68,7 +68,7 @@
     (status, output) = commands.getstatusoutput(cmd)
     if status != 0:
         exit(1)
-    grp_pattern = r"Global Statistics:\n\s+LISTEN:\s+(\d+)\s+\n\s+SYN_SENT:\s+(\d+)\s+\n\s+SYN_RCVD:\s+(\d+)\s+\n\s+ESTABLISHED:\s+(\d+)\s+\n\s+CLOSE_WAIT:\s+(\d+)\s+\n\s+FIN_WAIT_1:\s+(\d+)\s+\n\s+CLOSING:\s+(\d+)\s+\n\s+LAST_ACK:\s+(\d+)\s+\n\s+FIN_WAIT_2:\s+(\d+)\s+\n\s+TIME_WAIT:\s+(\d+)\s+\n"
+    grp_pattern = r"Global Statistics:\s*\n\s*LISTEN:\s*(\d+)\s*\n\s*SYN_SENT:\s*(\d+)\s*\n\s*SYN_RCVD:\s*(\d+)\s*\n\s*ESTABLISHED:\s*(\d+)\s*\n\s*CLOSE_WAIT:\s*(\d+)\s*\n\s*FIN_WAIT_1:\s*(\d+)\s*\n\s*CLOSING:\s*(\d+)\s*\n\s*LAST_ACK:\s*(\d+)\s*\n\s*FIN_WAIT_2:\s*(\d+)\s*\n\s*TIME_WAIT:\s*(\d+)"
     vs_pattern = r"virtual service:\s+(\S+).*?LISTEN: (.*?)\n\s+SYN_SENT: (.*?)\n\s+SYN_RCVD: (.*?)\n\s+ESTABLISHED: (.*?)\n\s+CLOSE_WAIT: (.*?)\n\s+FIN_WAIT_1: (.*?)\n\s+CLOSING: (.*?)\n\s+LAST_ACK: (.*?)\n\s+FIN_WAIT_2: (.*?)\n\s+TIME_WAIT: (.*?)\n"
     grp_data = []
     if output:
