feat: Agregar soporte de timezone y patrones personalizados para nomb…#41
Merged
Skyfay merged 2 commits intoSkyfay:mainfrom May 3, 2026
Merged
feat: Agregar soporte de timezone y patrones personalizados para nomb…#41Skyfay merged 2 commits intoSkyfay:mainfrom
Skyfay merged 2 commits intoSkyfay:mainfrom
Conversation
…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
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Owner
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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