Skip to content

Commit

Permalink
use time
Browse files Browse the repository at this point in the history
  • Loading branch information
kobtea committed Feb 18, 2017
1 parent 6a17e71 commit f9787f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions todoist/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Item struct {
Content string `json:"content"`
DateString string `json:"date_string,omitempty"`
DateLang string `json:"date_lang,omitempty"`
DueDateUtc string `json:"due_date_utc,omitempty"`
DueDateUtc Time `json:"due_date_utc,omitempty"`
Priority int `json:"priority,omitempty"`
Indent int `json:"indent,omitempty"`
ItemOrder int `json:"item_order,omitempty"`
Expand All @@ -28,7 +28,7 @@ type Item struct {
InHistory int `json:"in_history,omitempty"`
IsArchived int `json:"is_archived,omitempty"`
SyncID int `json:"sync_id,omitempty"`
DateAdded string `json:"date_added,omitempty"`
DateAdded Time `json:"date_added,omitempty"`
}

type ItemClient struct {
Expand Down
6 changes: 3 additions & 3 deletions todoist/note.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Note struct {
FileURL string `json:"file_url"`
UploadState string `json:"upload_state"`
} `json:"file_attachment"`
UIDsToNotify []ID `json:"uids_to_notify"`
IsArchived int `json:"is_archived"`
Posted string `json:"posted"`
UIDsToNotify []ID `json:"uids_to_notify"`
IsArchived int `json:"is_archived"`
Posted Time `json:"posted"`
}
2 changes: 1 addition & 1 deletion todoist/reminder.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type Reminder struct {
Type string `json:"type"`
DateString string `json:"date_string"`
DateLang string `json:"date_lang"`
DueDateUtc string `json:"due_date_utc"`
DueDateUtc Time `json:"due_date_utc"`
MmOffset int `json:"mm_offset"`
Name string `json:"name"`
LocLat string `json:"loc_lat"`
Expand Down

0 comments on commit f9787f0

Please sign in to comment.