fluent / fluent/fluent-plugin-sql

ActiveRecord default timezone

Abierto
#43 4 comentarios 2 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Ruby
Estrellas
112
Forks
58
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi,

In reading from DB the time is always set to UTC, disregarding the DB setting.

To solve the issue, I tried to this line in the plugin:
ActiveRecord::Base.default_timezone = :local

It worked.

Regards

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by locating where the plugin configures ActiveRecord and where database values are read. Inspect the ActiveRecord::Base.default_timezone setting and verify behavior with the supported database configurations. Done means reads no longer force UTC when the database timezone is set to local.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
rails, ruby
Área
backend, databases
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.