Project

General

Profile

Actions

Bug #13557

closed

Enforce specifying a time zone via Rubocop

Added by Daniel Lobato Garcia almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Rubocop can enforce what timezone to store in the database via Rubocop, so we can ensure everything is stored using UTC and we don't miss these things in code reviews. When objects are displayed, they must use the time provided by set_timezone in the controller.

This is particularly relevant for Trends, Puppet graphs, etc... to ensure they are stored always properly.

Actions

Also available in: Atom PDF