summaryrefslogtreecommitdiff
path: root/sqlite.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2018-09-12 04:16:07 +0200
committerNikolaus Gotsche <n@softwarefools.com>2018-09-12 04:16:07 +0200
commitab1e57948af2e391e50d7aec5eadad7d1c203c35 (patch)
tree2fdc6ab3eb3962e269b1ea1e2feeaeafbccf6a89 /sqlite.go
parent06c06f5f6427f6da22b2476fa208e8c4ce54b7ee (diff)
Interface Cleanup
Diffstat (limited to 'sqlite.go')
-rw-r--r--sqlite.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/sqlite.go b/sqlite.go
index 1be6394..637b76b 100644
--- a/sqlite.go
+++ b/sqlite.go
@@ -128,11 +128,14 @@ func newTaskTime(proj int, tim string) {
fmt.Println(boldGreen("Start Project at ",tim))
if (opentask.id == 0) {
timstr := "1791-09-30 19:07"
+ //zone, _ := time.Now().Zone()
if isDate(tim) {
timstr = getDate(tim)
+ //timst = timstr+" "+zone
}else if isTime(tim) {
- currdate := time.Now().UTC().Format("2006-01-02")
+ currdate := time.Now().Local().Format("2006-01-02")
timstr = currdate+" "+getTime(tim)
+ //timst = timstr+" "+zone
}else {
fmt.Println(tim,boldRed("is Not a Valid Timestring!"), "use: 'YYYY-MM-DD HH:MM' or 'HH:MM'")
return