Author Topic: Leap Year Issue - wxAssert DateTime Error tm.IsValid() on 29 Feb  (Read 5979 times)

Offline Bithead

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 11
Leap Year Issue - wxAssert DateTime Error tm.IsValid() on 29 Feb
« on: February 29, 2012, 10:18:12 AM »
I've been using BS2 since July with no problems. I've had build 57 running since the end of December with no problem. Starting this morning I get the wxWidgets Debug Alert when starting. I respond NO, get one more wxWidgets Debug Alert error with text different than the first, then BS opens and I can work. I've tried a clean install including renaming the My Documents/Beersmith2 folder.
I've searched and have not found any other possible solutions.

Offline Hemicharger99

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 3
  • BeerSmith 2 Rocks!
Re: Win wxWidgets Debug Alert problem
« Reply #1 on: February 29, 2012, 10:24:22 AM »
Since I don't know the code, I am making a very educated guess (as a software developer) that there is an issue with the software handling the leap-year. Try rolling your date back a day or ahead one day and it should work fine.

Offline Bithead

  • BeerSmith Apprentice Brewer
  • **
  • Posts: 11
Re: Win wxWidgets Debug Alert problem
« Reply #2 on: February 29, 2012, 10:30:27 AM »
Guess I'll just ignore it till tomorrow.

Thanks for the quick response.

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5589
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
Leap Year Issue - wxAssert DateTime Error tm.IsValid() on 29 Feb
« Reply #3 on: February 29, 2012, 10:44:29 AM »
Hi,
  I'm merging several other threads into this one...

  There is a "leap year" bug in BeerSmith 2 which results in the attached error (see attachment).  The bottom line is that it is a "leap day" only problem. 
    - Press cancel button  to suppress warnings, and you can continue to use the program
    - I set my system date forward and verified that this is a "one day" problem - it should not occur 1 March and onward

  I will post a fix for it in the next patch so it does not occur again in four years.  Pressing the "Cancel" button when the error appears will let you work around the problem for today.

  I do sincerely apologize for this - it was a very subtle problem with a default date initializing the program, and obviously hard to catch in testing.

Thanks for your patience!
Brad
Get a free trial of BeerSmith 3 here

Offline ABREWCADABREW

  • The Drinking Joker
  • BeerSmith Apprentice Brewer
  • **
  • Posts: 11
  • Wanna see a magic trick? Gimme your beer.
    • ABREWCADABREW
Re: Leap Year Issue - wxAssert DateTime Error tm.IsValid() on 29 Feb
« Reply #4 on: February 29, 2012, 04:40:29 PM »
It's now March 1 in Japan, program works fine - no more error message!  :D
ABREWCADABREW
Magical Craft Beer

Member from: Zushi, Japan


Offline Donald

  • BeerSmith New Brewer
  • *
  • Posts: 1
  • BeerSmith 2 Rocks!
Re: Leap Year Issue - wxAssert DateTime Error tm.IsValid() on 29 Feb
« Reply #5 on: March 26, 2012, 07:32:47 AM »
Mine shows the wrong day, too.

Offline BeerSmith

  • Brewer, Author, Patriot
  • BeerSmith Administrator
  • BeerSmith Grandmaster Brewer
  • *****
  • Posts: 5589
  • BeerSmith - take the guesswork out of brewing!
    • BeerSmith
Re: Leap Year Issue - wxAssert DateTime Error tm.IsValid() on 29 Feb
« Reply #6 on: March 28, 2012, 09:16:40 AM »
Thanks,
  Someone just reported the "one off" days here in March and I'm debugging it now.  I'm hoping to include a fix in the next release in a few weeks.

Brad
Get a free trial of BeerSmith 3 here

 

modification