Update timezone from Europe/London to Europe/Moscow across configuration, backend, and frontend files for consistent time handling.

This commit is contained in:
vrubel 2025-12-30 14:26:14 +03:00
parent 457dc74485
commit 60409362c7
8 changed files with 13 additions and 13 deletions

View file

@ -7,7 +7,7 @@ function getTodayInLondon() {
// Получаем текущую дату в таймзоне London
const now = new Date();
const formatter = new Intl.DateTimeFormat('en-CA', {
timeZone: 'Europe/London',
timeZone: 'Europe/Moscow',
year: 'numeric',
month: '2-digit',
day: '2-digit'

View file

@ -1,4 +1,4 @@
const TZ = 'Europe/London';
const TZ = 'Europe/Moscow';
function formatDate(dateStr) {
const date = new Date(dateStr + 'T00:00:00');
@ -17,11 +17,11 @@ function formatDate(dateStr) {
return `${weekday}, ${day} ${month}`;
}
function getTodayInLondon() {
// Получаем текущую дату в таймзоне London
function getTodayInMoscow() {
// Получаем текущую дату в таймзоне Moscow
const now = new Date();
const formatter = new Intl.DateTimeFormat('en-CA', {
timeZone: 'Europe/London',
timeZone: 'Europe/Moscow',
year: 'numeric',
month: '2-digit',
day: '2-digit'
@ -30,7 +30,7 @@ function getTodayInLondon() {
}
function getTomorrowInLondon() {
const today = getTodayInLondon();
const today = getTodayInMoscow();
const date = new Date(today);
date.setDate(date.getDate() + 1);
return date.toISOString().split('T')[0];
@ -80,7 +80,7 @@ function calculateEndTime(startTime, durationMin) {
}
async function loadSchedule() {
const today = getTodayInLondon();
const today = getTodayInMoscow();
const tomorrow = getTomorrowInLondon();
console.log('Loading schedule from', today, 'to', tomorrow);