Skip to content

Configure timezone to avoid confusing issues #1

@trevorchaney

Description

@trevorchaney

psqlInfo := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", dbHost, dbPort, dbUser, dbPassword, dbName)

When connection to the database, if you don't configure the timezone, all times within the database are set to display as UTC. This can cause confusing issues with the user entering seeded data at their time in their timezone and it being displayed differently. My time zone is "American/Chicago" -6 hours from GMT. I was running into issues with the 'List' query because it expects that the date of the timestamp be the current date but without the connection settings I kept getting the 'not enough data' error message because all the seeded data is shown as 6 hours from now (the next day). Really confusing, Hope it helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions