FuelRats / pipsqueak

ED Fuel rats IRC bot
Other
13 stars 14 forks source link

Timezone Awareness Fix. #247

Closed theunkn0wn1 closed 6 years ago

theunkn0wn1 commented 6 years ago

Fixes a bug with the !quote command of rat-board where it was possible to subtract a timezone-aware datetime object from a timezone-nieve datetime object

Basically that's not a thing that is permissible and raises an unhandled exception during command execution. Props on Firebeam for reporting this.

Sidenote: why do we have both a timeutils.friendly_timedelta and a pretty_timedelta method? Seems a little redundant.

Fixes MECHA-246