diff --git a/app/scodoc/sco_utils.py b/app/scodoc/sco_utils.py
index d4c710cc3..6b0e8fbc4 100644
--- a/app/scodoc/sco_utils.py
+++ b/app/scodoc/sco_utils.py
@@ -387,6 +387,20 @@ def localize_datetime(date: datetime.datetime) -> datetime.datetime:
return new_date
+def get_local_timezone_offset() -> str:
+ """Récupère l'offset de la timezone du serveur, sous la forme
+ "+HH:MM"
+ """
+ local_time = datetime.datetime.now().astimezone()
+ utc_offset = local_time.utcoffset()
+ total_seconds = int(utc_offset.total_seconds())
+ offset_hours = total_seconds // 3600
+ offset_minutes = (abs(total_seconds) % 3600) // 60
+ offset_sign = "+" if offset_hours >= 0 else "-"
+ offset_str = f"{offset_sign}{abs(offset_hours):02d}:{offset_minutes:02d}"
+ return offset_str
+
+
def is_period_overlapping(
periode: tuple[datetime.datetime, datetime.datetime],
interval: tuple[datetime.datetime, datetime.datetime],
diff --git a/app/static/js/assiduites.js b/app/static/js/assiduites.js
index 446817247..ec4c1993a 100644
--- a/app/static/js/assiduites.js
+++ b/app/static/js/assiduites.js
@@ -223,27 +223,27 @@ function creerLigneEtudiant(etud, index) {