Skip to content

Commit 8cf0b84

Browse files
authored
Update weather-xml.py
1 parent 2a89f36 commit 8cf0b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

API/weather-xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
print()
5151
time = c.get('timepoint')
52-
time = re.sub("h", "", time)
52+
time = str.replace("h", "", time)
5353
d = datetime.now() + timedelta(hours=int(time))
5454
date = d.strftime("%Y-%m-%d %H:%M")
5555
print(f"Date\t\t{date}")

0 commit comments

Comments
 (0)