MartinSGill / TodoTxtJs

A Javascript web app implementation of TodoTxt
72 stars 29 forks source link

Wrong Creation Date #83

Open flribeiro opened 9 years ago

flribeiro commented 9 years ago

When I create a task, the "creation date" appears as "Yesterday", when it should be "Today". Is this a bug?

flribeiro commented 9 years ago

Here's an image showing a task I just added, with "Yesterday" creation date. Using Google Chrome in Windows 10.

todotxtjs

MartinSGill commented 8 years ago

I have been unable to reproduce this. I always see it as "today". Is there any additional information you can provide me? e.g. does it only happen near midnight?

flribeiro commented 8 years ago

The problem occurred during all day, anytime. I was using Google Chrome on Windows. The same occurred at my home PC or at my work PC.

Cordialmente,

FABRÍCIO LOMBARDI RIBEIRO Tel. +55 16 98185-2222 | Skype: fabricio.tob.brasil LinkedIn: http://br.linkedin.com/in/flribeiro Twitter: @flribeiro http://twitter.com/flribeiro

On Tue, Nov 10, 2015 at 3:31 PM, Martin Gill notifications@github.com wrote:

I have been unable to reproduce this. I always see it as "today". Is there any additional information you can provide me? e.g. does it only happen near midnight?

— Reply to this email directly or view it on GitHub https://github.com/MartinSGill/TodoTxtJs/issues/83#issuecomment-155500296 .

MartinSGill commented 8 years ago

I wonder if it's time zone related, there have been bugs around that before. I presume the actual date is correct and the issue is only a cosmetic one?

flribeiro commented 8 years ago

Exactly! I was using the same todo.txt file in another app simultaneously and that it was exhibited correctly.

Cordialmente,

FABRÍCIO LOMBARDI RIBEIRO Tel. +55 16 98185-2222 | Skype: fabricio.tob.brasil LinkedIn: http://br.linkedin.com/in/flribeiro Twitter: @flribeiro http://twitter.com/flribeiro

On Tue, Nov 10, 2015 at 3:49 PM, Martin Gill notifications@github.com wrote:

I wonder if it's time zone related, there have been bugs around that before. I presume the actual date is correct and the issue is only a cosmetic one?

— Reply to this email directly or view it on GitHub https://github.com/MartinSGill/TodoTxtJs/issues/83#issuecomment-155512006 .

leofontenelle commented 8 years ago

Although I didn't report it yet, I have the same problem. I have the same timezone (Americas/Sao_Paulo) and language (pt_BR) as Fabrício Ribeiro. The issue happens with Chrome on Windows or Android as well as with Firefox (and IIRC other browsers) on Linux.

Although the todo.txt file itself has the correct date, TodoTxtJs (at least in MartinSGill's server) displays "Yesterday" (in English) as the human friendly date.

Is there any test you'd need us to to in order to understand what causes this?

cliftonprince commented 8 years ago

I have the same problem.

In fact, the web-interface doesn't just REPRESENT the wrong date, it CHANGES the date at certain intervals or in certain settings. Here are three screen-shots of changes in how a pair of tasks display. The two tasks have created-dates of 2016-02-08 (one week in the future). The dates appear variously as 2016-02-08 or 2016-02-09, depending on whether the task is clicked to "live" status or not. Weirdness.

2016-02-01 1 2016-02-01 2 2016-02-01 3

Before I found this thread on the bug, I wrote up the following report to submit as a "New Issue," but then I found this thread so I didn't submit it that way. I might as well include the text of it, but it's just describing the same existing problem.

Is this you, time-zones, web-server, something else, or just me? Dates are off by a day.

Today is Monday, February 1, 2016. It is 11 a.m. in the Central Time Zone of the United States. I have a todo.txt file with tasks in it that are dated as created today with the proper text-string "2016-02-01". But the web interface at http://todo.martinsgill.co.uk/? claims that they were created "Yesterday". Similarly, I set up a new task in the web interface with a creation-date of "2016-02-08", which is also a Monday. The web interface indicates it will be created on "Sunday". Further, I set up a new task in the web interface with a creation-date of "2016-01-31", but it changed the creation-date to "2016-01-30".

Thought you'd like to know. No skin offa my back. :)

cliftonprince[MUNGEAT]cliftonprince[MUNGEDOT]com no need to reply best wishes

emanderson commented 8 years ago

I am having the same problem, using Chrome on my Mac in the Pacific time zone. The creation dates in the text file itself seem to be fine, but the dates in the formatted view are a day earlier. So far not a deal breaker for me but a bit confusing.