소스 검색

timezone im datum

hmt 6 년 전
부모
커밋
a1d907fc87
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      helfer.js

+ 1 - 1
helfer.js

@@ -21,7 +21,7 @@ export const groupBy = (arr, id) => arr.reduce(
 export const datum = (t) => {
   // gibt ein Datum im deutschen Format zurück
   try {
-    return new Date(t).toLocaleDateString('de', {day: '2-digit', month: '2-digit', year: 'numeric'})
+    return new Date(t).toLocaleDateString('de', {day: '2-digit', month: '2-digit', year: 'numeric', timeZone: 'Europe/Berlin'})
   } catch (e) {console.log(e); return}
 }
 export const versetzungsvermerk = (hj, agz = null) => {