-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parsing time "Invalid date" as "2006-01-02" #90
Comments
Could you please recall the steps you might have taken that triggered the problem or the file corruption? We don't know how to reproduce this bug from your description. |
EDIT: ... I messed things up here, explained later. |
ah, darn. The "invalid date" thing with |
@mredigonda what version of todolist are you using? I know this was fixed in a recent version. |
Oh wait, I'm afraid I'm confused. Please ignore my previous message, it says things that makes no sense like 'from "00:00" to "00:00"', I confused repos with calcurse, which had another problem about dates. I'm really sorry about that. So you can forget about things like "I'm using an older version". My version was downloaded from the official page, not too long ago. I couldn't reproduce this bug. I thought it could have to do with multiple instances of "todolist web" running on different tabs, or interacting from the command line and the web version at the same time. |
I've had this problem today on 0.8 from Brew. I don't know at what point it broke but I have had the web view open today so it may be that, I needed to remove "Invalid date" from two tasks in the json file manually to get it working again. |
@dnel Is this still an issue? Or is any other Mac user suffering from this? |
I've not seen it since, but I haven't been using web view for a while due to it being broken. |
web view is fixed! Please re-open this issue if you see the same problem with the web view. |
parsing time "Invalid date" as "2006-01-02": cannot parse "Invalid date" as "2006"
This may due to the corruption of .todos.json file.
This error pops up when I try to list my tasks (
todolist list
,todolist list by project
,todolist list by context
).It started to happen after using the web version (opened with
todolist web
), maybe it could be cause by manipulating both the web version and the CLI at the same time, it seems that some action in the web version corrupted the .todos.json files.Web version is also not working (it doesn't let you add tasks nor check them as completed), but at least it is displaying (I think) all of the tasks.
Great software, by the way 👍
EDIT: I revised the problem and updated the issue.
EDIT: Examining the .todos.json file, it seems that one of the events has an "Invalid date" in the "due" property, that was expected, but also, the task that has this value also has a period: "." in it, could this has something to do with the error? I think I have added the task, and after manipulating it (by changing date from web interface) it crashed. After manually repairing the .todos.json file, now everything is working fine.
The text was updated successfully, but these errors were encountered: