From 1e2d27715229efaaaf49a20b294fbfc2aff694a9 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Thu, 27 Jun 2019 23:35:29 +0000
Subject: [PATCH] Use renderMode image for vehicles layer (performance improvement)

---
 common.js |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/common.js b/common.js
index fa006be..964cf68 100644
--- a/common.js
+++ b/common.js
@@ -4,7 +4,7 @@
 	t: 'proxy_tram.php',
 	// t: 'http://www.ttss.krakow.pl/internetservice',
 	b: 'proxy_bus.php',
-	// b: 'http://91.223.13.70/internetservice',
+	// b: 'http://ttss.mpk.krakow.pl/internetservice',
 };
 var ttss_types = ['t', 'b'];
 
@@ -165,10 +165,9 @@
 }
 
 function parseTime(date, time) {
-	var result = new Date(date.getFullYear(), date.getMonth(), date.getDay());
+	var result = new Date(date.getTime());
 	var time_split = time.split(':');
-	result.setHours(time_split[0]);
-	result.setMinutes(time_split[1]);
+	result.setHours(time_split[0], time_split[1], 0);
 	
 	if(result.getTime() - date.getTime() > 72000000) {
 		result.setTime(result.getTime() - 86400000);

--
Gitblit v1.9.1