File: fix_time_zone_name.patch

package info (click to toggle)
influxdb-python 5.3.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,576 kB
  • sloc: python: 7,274; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 912 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Andreas Tille <tille@debian.org>
Last-Update: Fri, 27 Oct 2023 08:00:57 +0200
Bug-Debian: https://bugs.debian.org/1052806
Description: tzdata ships only timezones in tzdata that follow the current rules
             of geographical region (continent or ocean) and city name
Forwarded: No (since "This repository has been archived by the owner on Jul 18, 2023. It is now read-only.")

--- a/influxdb/tests/test_line_protocol.py
+++ b/influxdb/tests/test_line_protocol.py
@@ -53,7 +53,7 @@ class TestLineProtocol(unittest.TestCase
         dt = datetime(2009, 11, 10, 23, 0, 0, 123456)
         utc = UTC.localize(dt)
         berlin = timezone('Europe/Berlin').localize(dt)
-        eastern = berlin.astimezone(timezone('US/Eastern'))
+        eastern = berlin.astimezone(timezone('America/New_York'))
         data = {
             "points": [
                 {"measurement": "A", "fields": {"val": 1},