Ejemplo con la inspección 250:
Guardado en BD: 2025-12-08 19:11:30+00 (hora de Canarias) Mostrado en tu cliente: 2025-12-08 16:11:30-03 (convertido a Paraguay, 3 horas menos) Ambas representan el MISMO momento en el tiempo, solo que en zonas horarias diferentes. 🌍 Resumen del Sistema Componente Zona Horaria Estado PostgreSQL (almacenamiento) +00 Atlantic/Canary ✅ CORRECTO Backend FastAPI Atlantic/Canary ✅ CORRECTO Frontend (usuario) Local del navegador ✅ CORRECTO (convierte automáticamente) Tu cliente PostgreSQL -0300 Paraguay ℹ️ Solo afecta cómo VES las fechas 💡 Conclusión
This commit is contained in:
24
postgres-custom.conf
Normal file
24
postgres-custom.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
# Configuración de PostgreSQL para Ayutec
|
||||
# Zona horaria: Atlantic/Canary (Islas Canarias, España)
|
||||
|
||||
# ZONA HORARIA
|
||||
timezone = 'Atlantic/Canary'
|
||||
log_timezone = 'Atlantic/Canary'
|
||||
|
||||
# LOCALE (opcional - para formato de fechas en español)
|
||||
lc_messages = 'es_ES.UTF-8'
|
||||
lc_monetary = 'es_ES.UTF-8'
|
||||
lc_numeric = 'es_ES.UTF-8'
|
||||
lc_time = 'es_ES.UTF-8'
|
||||
|
||||
# CONEXIONES
|
||||
max_connections = 100
|
||||
shared_buffers = 256MB
|
||||
|
||||
# LOGGING
|
||||
logging_collector = on
|
||||
log_directory = 'pg_log'
|
||||
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
|
||||
log_statement = 'mod' # Registrar INSERT, UPDATE, DELETE
|
||||
log_duration = on
|
||||
log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h '
|
||||
Reference in New Issue
Block a user