Weirdness with task dates in 2021

Moderators: Uros, Tom, OXO

Post Reply
KipperUK
Posts: 179
Joined: Fri Sep 21, 2018 9:30 pm

Weirdness with task dates in 2021

Post by KipperUK » Sun Jan 03, 2021 7:38 pm

I just tried to create FPL files for 1st Jan 2021 and 2nd Jan 2021 and when looking at the FPL file, it comes up with a horrible negative number.

When I reloaded the FPL files, the year was 0202!

Possibly not a problem (depending how far into 2021 the dates don't save properly) but I thought worth noting as a bug.

KipperUK
Posts: 179
Joined: Fri Sep 21, 2018 9:30 pm

Re: Weirdness with task dates in 2021

Post by KipperUK » Sun Jan 03, 2021 7:46 pm

Quick further check, it seems to be OK from March 2021.

Not that anyone might want to set up Jan/Feb tasks... or would they :)

User avatar
Bre901
Posts: 1799
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: Weirdness with task dates in 2021

Post by Bre901 » Sun Jan 03, 2021 10:34 pm

KipperUK wrote:
Sun Jan 03, 2021 7:38 pm
I just tried to create FPL files for 1st Jan 2021 and 2nd Jan 2021 and when looking at the FPL file, it comes up with a horrible negative number.

When I reloaded the FPL files, the year was 0202!

Possibly not a problem (depending how far into 2021 the dates don't save properly) but I thought worth noting as a bug.
As far as I can remember, this is a known issue, but I'm too lazy tonight to do a forum search :wink:

How did you set the date ?

If I use the popup calendar to set the date, it works fine (I tried January 2nd 2021), but if I type in that date, save the file and read it again, the date is indeed 02/02/0202

Use the popup calendar !
Not that anyone might want to set up Jan/Feb tasks... or would they :)
As far as I'm concerned, I think there are some folks somewhere down under who might have a different opinion... :roll:
CN: MPT — CondorUTill webpage: https://condorutill.fr/

KipperUK
Posts: 179
Joined: Fri Sep 21, 2018 9:30 pm

Re: Weirdness with task dates in 2021

Post by KipperUK » Mon Jan 04, 2021 10:57 am

Bre901 wrote:
Sun Jan 03, 2021 10:34 pm
Not that anyone might want to set up Jan/Feb tasks... or would they :)
As far as I'm concerned, I think there are some folks somewhere down under who might have a different opinion... :roll:
Literally thought that as soon as I'd posted.

I thought I had used the popup calendar but I definitely resorted to typing whilst figuring it out.

I was just trying to work out the date format in the FPL file so that I could, theoretically, generate it automatically.

User avatar
dgtfer
Posts: 521
Joined: Mon Nov 19, 2007 9:49 am
Location: Marseille - france

Re: Weirdness with task dates in 2021

Post by dgtfer » Mon Jan 04, 2021 11:12 am

date 0 in condor is 30th of December 1899.
For the first of January 2021 you just add 120*365.25 + 365 +2: ie 44197.
Image

KipperUK
Posts: 179
Joined: Fri Sep 21, 2018 9:30 pm

Re: Weirdness with task dates in 2021

Post by KipperUK » Tue Jan 05, 2021 2:00 pm

Perfect, thanks :D

be_adairing
Posts: 110
Joined: Sat Nov 25, 2017 10:27 am

Re: Weirdness with task dates in 2021

Post by be_adairing » Sun Dec 19, 2021 6:57 pm

Is there a way of getting this bug fixed? It causes DSH to fail due to the faulty date.

Thanks,

Paul

Post Reply