I'm not really good at bug posting so bear with me and ask questions
if you need clarification.

I tested different ends of years to find dates that caused issues.
Here is a short list of the ones that did:

2006-01-01 - displayed as 2005
2007-12-31 - displayed as 2008
2008-12-29, 2008-12-30, 2008-12-31 - displayed as 2009
2010-01-01, 2010-01-02, 2010-01-03 - displayed as 2009
2011-01-01, 2011-01-02 - displayed as 2010

I added some lines to main.c to test if it was an issue in getting the
string for the date. I added the following code to the front of int
main:

-CODE-----
  gchar *buffer = g_malloc(sizeof(gchar)*64);
  memset(buffer,'\0',  64*sizeof(gchar));
  
  GDate *date = g_date_new();

  GDateDay day = 30;
  GDateMonth month = 12;
  GDateYear year = 2008;

  g_date_set_dmy(date, day, month, year);

  g_date_strftime(buffer, 64*sizeof(gchar), "%d %b %G", date);

  printf("%s\n", buffer);
-END-----

That prints out the date as it would be in the program. I chose one of the 
dates I knew to cause problems (see above) and it printed out the way it does 
in the program. Meaning it printed out as 2009. Test it if you want to see what 
I mean.

Anyway, I don't know if that helps but at least it means it's probably not an 
issue with gTodo.


Carl Strickland

-- 
Carl Strickland <c...@geekthink.org>. keyserver: <http://pgp.mit.edu>
Please use this key to encrypt all messages sent to me.

Attachment: signature.asc
Description: Digital signature

Reply via email to