Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

_sdc_batched_at may be local time #104

Description

@tombriggsallego

Describe the bug
The value stored in the _sdc_batched_at field reflects the local time of the system running target-postgres but should be UTC.

I believe the issue is simply this (line 68 in __init__.py)

extended_record['_sdc_batched_at'] = datetime.now().isoformat()

in contrast, pipelinewise-tap-mysql populates the time-extracted field using

time_extracted = utils.now()

which produces a value in UTC.

To Reproduce
Steps to reproduce the behavior:

  1. Load some data with the add_metadata_columns option enabled
  2. Inspect the _sdc_batched_at column - values will reflect local time

Expected behavior
Values should be in UTC.

Your environment

  • Version of target: 2.1.1
  • Version of python 3.10.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions