mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-11 02:22:37 +01:00
Fix linting issues in timezone implementation
Co-authored-by: berry-13 <81851188+berry-13@users.noreply.github.com>
This commit is contained in:
parent
9fe4554a70
commit
3c4c4d53dd
2 changed files with 3 additions and 2 deletions
|
|
@ -451,7 +451,7 @@ export function replaceSpecialVars({
|
|||
|
||||
const localDatetime = dayjs().tz(timezone).format('YYYY-MM-DD HH:mm:ss');
|
||||
result = result.replace(/{{local_datetime}}/gi, `${localDatetime} (${localDayNumber})`);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// If timezone is invalid, fall back to UTC values for local_* variables
|
||||
result = result.replace(/{{local_date}}/gi, combinedDate);
|
||||
result = result.replace(/{{local_datetime}}/gi, `${currentDatetime} (${dayNumber})`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue