diff --git a/weatherplugin/src/plugin.py b/weatherplugin/src/plugin.py index a9ad62ccf..c4c9d0bc8 100644 --- a/weatherplugin/src/plugin.py +++ b/weatherplugin/src/plugin.py @@ -209,8 +209,12 @@ def getWeatherDataCallback(self, result, errortext): self["condition"].text = item.skytext self["humidity"].text = _("Humidity: %s %%") % item.humidity self["wind_condition"].text = item.winddisplay - c = time.strptime(item.observationtime, "%H:%M:%S") - self["observationtime"].text = _("Observation time: %s") % time.strftime("%H:%M", c) + try: + c = time.strptime(item.observationtime, "%H:%M:%S") + self["observationtime"].text = _("Observation time: %s") % time.strftime("%H:%M", c) + except: + c = time.strptime(item.observationtime, "%H.%M.%S") + self["observationtime"].text = _("Observation time: %s") % time.strftime("%H.%M", c) self["observationpoint"].text = _("Observation point: %s") % item.observationpoint self["feelsliketemp"].text = _("Feels like %s") % item.feelslike + "°" + self.weatherData.degreetype else: