robotframework-robocop
robotframework-robocop copied to clipboard
Could the `dateutil` dependency by dropped?
From what I see it's only usage is to get the local timezone, but this is available from the datetime directly.
See: https://stackoverflow.com/a/52606421/110451
Or am I missing something here?
I see we're using tzlocal() local from dateutil which is improved class over tzinfo from standard datetime. I will ask @rikerfi , do you know why we're using dateutil extra dependency over datetime? Timezones and time conversion are always black magic for me :) I'm asking you since it's used there:
timezone = tz.tzlocal() if self.timezone == "local" else pytz.timezone(self.timezone)
Hey, this is a good point. I'll study and get back to you.
I removed dateutil
in #782