summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-05-29 12:28:30 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-05-29 12:28:30 +0200
commit87abe427680f0b6a7eefafaba239336484da2768 (patch)
tree3d0e1764d73e684035ef739055d2a5406dc3f497 /overlays
parente54079e281bf88e6a06e4d15d6cbfff003ceef43 (diff)
downloadnixos-87abe427680f0b6a7eefafaba239336484da2768.tar
nixos-87abe427680f0b6a7eefafaba239336484da2768.tar.gz
nixos-87abe427680f0b6a7eefafaba239336484da2768.tar.bz2
nixos-87abe427680f0b6a7eefafaba239336484da2768.tar.xz
nixos-87abe427680f0b6a7eefafaba239336484da2768.zip
...
Diffstat (limited to 'overlays')
-rwxr-xr-xoverlays/worktime/worktime/__main__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/overlays/worktime/worktime/__main__.py b/overlays/worktime/worktime/__main__.py
index dddbb250..821d2cdd 100755
--- a/overlays/worktime/worktime/__main__.py
+++ b/overlays/worktime/worktime/__main__.py
@@ -2,9 +2,9 @@ import requests
2from requests.exceptions import HTTPError 2from requests.exceptions import HTTPError
3from requests.auth import HTTPBasicAuth 3from requests.auth import HTTPBasicAuth
4from datetime import * 4from datetime import *
5from xdg import (BaseDirectory) 5from xdg import BaseDirectory
6import toml 6import toml
7from uritools import uricompose 7from uritools import (uricompose)
8 8
9from dateutil.easter import * 9from dateutil.easter import *
10from dateutil.tz import * 10from dateutil.tz import *
@@ -127,9 +127,9 @@ class TogglAPI(object):
127 pass 127 pass
128 128
129 entries = list() 129 entries = list()
130 params = { 'since': (req_start - timedelta(days=1)).astimezone(timezone.utc).isoformat(), 130 params = { 'since': (req_start - timedelta(days=1)).date().isoformat(),
131 'until': (req_end + timedelta(days=1)).astimezone(timezone.utc).isoformat(), 131 'until': (req_end + timedelta(days=1)).date().isoformat(),
132 'rounding': rounding, 132 'rounding': 'yes' if rounding else 'no',
133 'billable': 'yes' 133 'billable': 'yes'
134 } 134 }
135 if client_ids is not None: 135 if client_ids is not None: