account, schduels, timezone profile and many imporant updates
This commit is contained in:
@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';
|
||||
import { Modal } from '../ui/modal';
|
||||
import Button from '../ui/button/Button';
|
||||
import { CalendarIcon, ClockIcon } from '../../icons';
|
||||
import { getAccountTimezone } from '../../utils/timezone';
|
||||
|
||||
interface Content {
|
||||
id: number;
|
||||
@@ -84,7 +85,8 @@ const ScheduleContentModal: React.FC<ScheduleContentModalProps> = ({
|
||||
day: 'numeric',
|
||||
hour: 'numeric',
|
||||
minute: '2-digit',
|
||||
hour12: true
|
||||
hour12: true,
|
||||
timeZone: getAccountTimezone(),
|
||||
});
|
||||
} catch (error) {
|
||||
return '';
|
||||
@@ -154,7 +156,7 @@ const ScheduleContentModal: React.FC<ScheduleContentModalProps> = ({
|
||||
{selectedDate && selectedTime && (
|
||||
<div className="bg-blue-50 border-l-4 border-blue-500 p-4 rounded">
|
||||
<p className="text-sm font-medium text-blue-900">
|
||||
Preview: {formatPreviewDate()}
|
||||
Preview: {formatPreviewDate()} ({getAccountTimezone()})
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user