NO

Author Topic: Possible localtime Bug  (Read 2278 times)

Offline DMac

  • Member
  • *
  • Posts: 272
Possible localtime Bug
« on: July 23, 2007, 06:49:45 PM »
Hello Pelle,

I have tried this on Win2k and on XP with the same results.

The month seems to be off by one.

I am attaching a screen shot and a project.

Regards,

DMac

No one cares how much you know,
until they know how much you care.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Possible localtime Bug
« Reply #1 on: July 23, 2007, 07:16:38 PM »
Note that the tm_mon member of the tm struct goes from 0 to 11, not 1 to 12. Better as an array index, worse as a literal month...
/Pelle