Skip to content

taskController.go time parser issue  #4

@dzodkin33

Description

@dzodkin33

Time doesn't work. Probably the issue with incorrect value passing between typescript and go. Throws error:

plannerxyi-backend-1  | 2022/08/15 08:27:24 /app/src/controllers/taskController.go:44 Error 1292: Incorrect datetime value: '0000-00-00' for column 'task_deadline' at row 1

plannerxyi-backend-1  | [10.047ms] [rows:0] INSERT INTO `tasks` (`task_name`,`task_description`,`task_deadline`,`user_id`) VALUES ('test','description','0000-00-00 00:00:00',5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions