Compare commits
No commits in common. "701023db593d853dbd3e82018c2ac932ad187cd7" and "38cf270307e5ad79a4fd2482cae3daddfa313480" have entirely different histories.
701023db59
...
38cf270307
2 changed files with 3 additions and 1 deletions
|
|
@ -492,7 +492,7 @@ build_map("map", coordinates, routes);
|
||||||
|
|
||||||
function timezoneOffsetLabel(offsetMinutes) {
|
function timezoneOffsetLabel(offsetMinutes) {
|
||||||
if (offsetMinutes === 0) {
|
if (offsetMinutes === 0) {
|
||||||
return "No difference";
|
return "Same time as Bristol";
|
||||||
}
|
}
|
||||||
const sign = offsetMinutes > 0 ? "+" : "-";
|
const sign = offsetMinutes > 0 ? "+" : "-";
|
||||||
const abs = Math.abs(offsetMinutes);
|
const abs = Math.abs(offsetMinutes);
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
"""Web page to show upcoming events."""
|
"""Web page to show upcoming events."""
|
||||||
|
|
||||||
import decimal
|
import decimal
|
||||||
|
import functools
|
||||||
import hashlib
|
import hashlib
|
||||||
import importlib
|
import importlib
|
||||||
import inspect
|
import inspect
|
||||||
|
|
@ -806,6 +807,7 @@ def _timezone_from_coordinates(latitude: float, longitude: float) -> str | None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
@functools.lru_cache(maxsize=1)
|
||||||
def _get_timezone_finder() -> typing.Any:
|
def _get_timezone_finder() -> typing.Any:
|
||||||
"""Get timezone finder instance if dependency is available."""
|
"""Get timezone finder instance if dependency is available."""
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue