<#9172 bug: CRITICAL time data '2025-03-24T08:00:0...
# meltano-repo-activity
g
#9172 bug: CRITICAL time data '2025-03-24T080000+00:00' does not match format '%Y-%m-%dT%H:%M:%SZ' Issue created by yegortokmakov ### Meltano Version 3.7.0 ### Python Version 3.9 ### Bug scope CLI (options, error messages, logging, etc.) ### Operating System No response ### Description It seems like the date format changed in 3.7 and now one of our taps is complaining it can't parse the date. This specific extractor has the format hardcoded: https://github.com/meshcloud/tap-prometheus/blob/master/tap_prometheus/__init__.py#L20 Any ideas how to migrate to 3.7 without changing the taps' code?
Copy code
CRITICAL time data '2025-03-24T08:00:00+00:00' does not match format '%Y-%m-%dT%H:%M:%SZ'
Traceback (most recent call last):
  File \"/project/.meltano/extractors/tap-prometheus/venv/bin/tap-prometheus\", line 8, in <module>
    sys.exit(main())
  File \"/project/.meltano/extractors/tap-prometheus/venv/lib/python3.9/site-packages/singer/utils.py\", line 229, in wrapped
    return fnc(*args, **kwargs)
  File \"/project/.meltano/extractors/tap-prometheus/venv/lib/python3.9/site-packages/tap_prometheus/__init__.py\", line 256, in main
    sync(client)
  File \"/project/.meltano/extractors/tap-prometheus/venv/lib/python3.9/site-packages/tap_prometheus/__init__.py\", line 118, in sync
    query_metric(client, name, query, batch, step)
  File \"/project/.meltano/extractors/tap-prometheus/venv/lib/python3.9/site-packages/tap_prometheus/__init__.py\", line 136, in query_metric
    bookmark_unixtime = int(datetime.strptime(
  File \"/usr/local/lib/python3.9/_strptime.py\", line 568, in _strptime_datetime
  File \"/usr/local/lib/python3.9/_strptime.py\", line 568, in _strptime_datetime
  File \"/usr/local/lib/python3.9/_strptime.py\", line 568, in _strptime_datetime
    bookmark_unixtime = int(datetime.strptime(
  File \"/usr/local/lib/python3.9/_strptime.py\", line 568, in _strptime_datetime
  File \"/usr/local/lib/python3.9/_strptime.py\", line 568, in _strptime_datetime
    bookmark_unixtime = int(datetime.strptime(
  File \"/usr/local/lib/python3.9/_strptime.py\", line 568, in _strptime_datetime
ano/extractors/tap-prometheus/venv/lib/python3.9/site-packages/tap_prometheus/__init__.py\", line 118, in sync
    query_metric(client, name, query, batch, step)
  File \"/project/.meltano/extractors/tap-prometheus/venv/lib/python3.9/site-packages/tap_prometheus/__init__.py\", line 136, in query_metric
    bookmark_unixtime = int(datetime.strptime(
  File \"/usr/local/lib/python3.9/_strptime.py\", line 568, in _strptime_datetime
  File \"/project/.meltano/extractors/tap-prometheus/venv/lib/python3.9/site-packages/tap_prometheus/__init__.py\", line 136, in query_metric
    bookmark_unixtime = int(datetime.strptime(
  File \"/usr/local/lib/python3.9/_strptime.py\", line 568, in _strptime_datetime
kmark_unixtime = int(datetime.strptime(
  File \"/usr/local/lib/python3.9/_strptime.py\", line 568, in _strptime_datetime
nt": "  File \"/usr/local/lib/python3.9/_strptime.py\", line 568, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
  File \"/usr/local/lib/python3.9/_strptime.py\", line 349, in _strptime
    raise ValueError(\"time data %r does not match format %r\" %
ValueError: time data '2025-03-24T08:00:00+00:00' does not match format '%Y-%m-%dT%H:%M:%SZ'
### Code - name: tap-prometheus variant: meshcloud pip_url: git+https://github.com/meshcloud/tap-prometheus.git config: start_date: "2025-03-24T080000Z" ### Link to Slack/Linen No response meltano/meltano