This commit is contained in:
Denis Fomin
2011-11-02 21:54:10 +03:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
[info] [info]
name: Set Location name: Set Location
short_name: set_location short_name: set_location
version: 0.5 version: 0.6
description: Set information about the current geographical or physical location. description: Set information about the current geographical or physical location.
To be able to specify a location on the built-in card, you must install python-osmgpsmap > 0.5 To be able to specify a location on the built-in card, you must install python-osmgpsmap > 0.5
authors: Denis Fomin <fominde@gmail.com> authors: Denis Fomin <fominde@gmail.com>

View File

@@ -46,7 +46,7 @@ class SetLocationPlugin(GajimPlugin):
self._data = {} self._data = {}
timestamp = time.time() timestamp = time.time()
timestamp = datetime.utcfromtimestamp(timestamp) timestamp = datetime.utcfromtimestamp(timestamp)
timestamp = timestamp.strftime('%Y-%m-%dT%H:%MZ') timestamp = timestamp.strftime('%Y-%m-%dT%H:%M:%SZ')
self._data['timestamp'] = timestamp self._data['timestamp'] = timestamp
for name in self.config_default_values: for name in self.config_default_values:
self._data[name] = self.config[name] self._data[name] = self.config[name]