Invalid daylight saving time info for 'Europe/Dublin'

Asked by Kamila

I'm trying to check if daylight saving time is in effect for the 'Europe/Dublin'. Executing the following line:

datetime.datetime.now(pytz.timezone('Europe/Dublin')).dst()

is giving 0 as a result, which is incorrect because today (2022/10/17) is still daylight saving time in effect so the function should return a dst offset value.

Question information

Language:
English Edit question
Status:
Expired
For:
pytz Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.