Skip to content

Convert all dates to local time #1

Description

@robert-carroll

LED creates an additional field called event_time_local in comparison to event_time which is in UTC. I would like to force all timestamp values to be local.

this
Time.parse(body['created_at']).utc.strftime(TIME_FORMAT).to_s
becomes
Time.parse(body['created_at']).utc.localtime.strftime(TIME_FORMAT).to_s

This would be similar to how I'm converting all timestamps to local timezone for our Canvas Data using Embulk. This saves on converting timestamps in SQL queries.

Since this affects all current users, I'm opening this up for discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions