stianaske / pybotvac

Python module for interacting with Neato Botvac Connected vacuum robots.
MIT License
85 stars 44 forks source link

Avoid missing locale #48

Closed Santobert closed 5 years ago

Santobert commented 5 years ago

The locale en_US.UTF-8 is not available in some environments (e.g. some docker containers).

This PR takes the time from datetime.utcnow(), which is independent of the operating system and its locales. Please correct me, if I'm wrong.

I've tested this on a german setting. Please test this in other environments.

Fixes https://github.com/home-assistant/home-assistant/issues/25773

Santobert commented 5 years ago

This could fix #45 as well.

Santobert commented 5 years ago

I'll open a new pr with the right fix asap