update 2024 copyrigth and timezone problem

This commit is contained in:
Ben
2024-06-18 17:34:32 +02:00
parent 98f5a674c0
commit 845c4c12ac
3 changed files with 65 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
/**
* @file ouestmonbus.com main source file.
*
* @copyright Benoît Meunier & Karin Meunier - 2015-2023
* @copyright Benoît Meunier & Karin Meunier - 2015-2024
*
* @license
* ouestmonbus.com is free software: you can redistribute it and/or modify
@@ -26,7 +26,7 @@ const STATION_LIST_REFRESH = 4 * 60 * 1000;
const version = '%VERSION%';
const date_version = '%DATEVERSION%';
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
const tz = 'Europe/Paris';
const apikey = "3324de385f6b7b5bdfa1727d3e1a9f4bed5dd1accb288db6df5e8487";
log.setLevel(1);
@@ -298,6 +298,9 @@ OuestmonbusApp.prototype.initTexts = function () {
$("#version").html(`Version ${version} (${date_version})`);
$("#app_news").html(marked.parse(`
**18/06/2024:**
- Correction de l'affichage de l'heure avec le mauvais fuseau horaire.
**17/06/2024:**
- Correction suite au changement de format des données GTFS.
@@ -406,7 +409,7 @@ OuestmonbusApp.prototype.initMap = function () {
// Ajout des mentions légals
var legal = L.control.attribution({
prefix: "<div id='legal_attribution'>&copy; 2015-2023 <a href='https://ouestmonbus.com'>ouestmonbus.com</a>"
prefix: "<div id='legal_attribution'>&copy; 2015-2024 <a href='https://ouestmonbus.com'>ouestmonbus.com</a>"
}).addAttribution("<a href='http://osm.org/copyright'>OpenStreetMap</a> | <a href='https://data.explore.star.fr/page/home/'>Data Keolis Rennes Métropole</a></div>");
legal.setPosition("bottomright");
legal.addTo(this.map);
@@ -1748,6 +1751,7 @@ OuestmonbusApp.prototype.generateLineDeparture = function (localtime, time, accu
}
}
}
departure.tz('Europe/Paris');
var t = departure.format("HH:mm:ss");
line_h = `<u>${t}</u> ${wait_str} ${retard_str}`;