Skip to content

feat: Agregar soporte de timezone y patrones personalizados para nomb…#41

Merged
Skyfay merged 2 commits intoSkyfay:mainfrom
iberlob:timezone
May 3, 2026
Merged

feat: Agregar soporte de timezone y patrones personalizados para nomb…#41
Skyfay merged 2 commits intoSkyfay:mainfrom
iberlob:timezone

Conversation

@iberlob
Copy link
Copy Markdown
Contributor

@iberlob iberlob commented May 2, 2026

TZ is not working correctly, I added this feature in case you find it useful to integrate into the project.
Additionally, I added an output file naming format feature.

Add global timezone configuration in Settings > General > Scheduler Timezone
Scheduler now respects the timezone when executing cron jobs
Add custom pattern support for file names with tokens: {name}, {db_name}, yyyy, MM, dd, HH, mm, ss
Use formatInTimeZone from date-fns-tz to generate timestamps in the configured timezone
Add "Backup File Naming" card in settings with live preview and token chips
Examples: {name}yyyy-MM-dd_HH-mm-ss or backup{name}_{db_name}_yyyyMMdd

  • Update runner to use timezone and pattern from SystemSettings
  • Update scheduler tests and runner integration tests

iberlob added 2 commits May 3, 2026 00:57
…res de backup

- Agregar configuración de timezone global en Configuración > General > Scheduler Timezone
- El scheduler ahora respeta el timezone al ejecutar trabajos cron
- Agregar soporte de patrón personalizado para nombres de archivo con tokens: {name}, {db_name}, yyyy, MM, dd, HH, mm, ss
- Usar formatInTimeZone de date-fns-tz para generar timestamps en la timezone configurada
- Agregar tarjeta "Backup File Naming" en configuración con vista previa en vivo y chips de tokens
- Ejemplos: {name}_yyyy-MM-dd_HH-mm-ss o backup_{name}_{db_name}_yyyyMMdd
- Actualizar runner para usar timezone y patrón desde SystemSetting
- Actualizar tests del scheduler y tests de integración del runner

Co-Authored-By: iberlob <israelblobo@gmail.com>
- Update /api/history to return systemTimezone along with executions
- Add timezone prop to DateDisplay component for displaying dates in specific timezone
- Pass systemTimezone through history page to columns and log viewer
- Update LogViewer and LogItem to display log timestamps in system timezone
- Ensures both 'Started At' column and log timestamps respect system timezone setting
@Skyfay Skyfay self-assigned this May 3, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 3, 2026

Codecov Report

❌ Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/lib/runner/steps/02-dump.ts 85.71% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@Skyfay
Copy link
Copy Markdown
Owner

Skyfay commented May 3, 2026

Hey @iberlob

Thank you very much. Those are great features. Even though TZ was already working correctly as an environment variable, it’s good that users can define it in the settings.

And the backup file naming is really cool, too!

I'll try to merge it, there are probably conflicts because there was a major refactor in the dev branch. I'll give it a try anyway.

@Skyfay Skyfay merged commit bc657ae into Skyfay:main May 3, 2026
5 of 6 checks passed
@iberlob iberlob deleted the timezone branch May 3, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants