psukys / tomate-toggl-plugin

Integration plugin with Toggl timer
GNU General Public License v3.0
1 stars 0 forks source link

Implement UTC offset formatting for retrieving time entries #9

Closed psukys closed 7 years ago

psukys commented 7 years ago

Currently for formatting UTC offset, the following is used:

def fake_utcoffset(d):
    idx = d.index('.')
    d = d[:dot_idx]
    d += '+00:00'
    return d

it cuts off time from datetime.datetime.today().isoformat() and adds an artificial '+00:00' ending for UTC offset. This should probably be handled by looking up user's time preferences.

psukys commented 7 years ago

12 solves this