[comp.sys.mac.programmer] Bug in ResEdit International date handling?

tom@wcc.oz.au (Tom Evans) (01/31/91)

I might have found a bug with ResEdit, or it might be a
System-interaction problem on my Mac. Whatever it is, here's what 
to look out for and how to "fix" it.

ResEdit 1.2 as came with our brand new MPW. Mac IIcx running System
6.0.5. Mac set to "Australian" date format (using "International" 
CDEV from Apple). Our date format is 31/1/91 for today (as distinct
from USA's 1/31/91).

I opened a few files with ResEdit to change the file signature and
after saving the changes the Finder showed their dates as 9-Feb-92!

ResEdit displays the dates as "31/1/91" initially, but seems to write
them back as "1st. of 31-uary (31st. month of the year), 1991". This
then gets displayed elsewhere as "9th. February, 1992". ResEdit also
shows "9/2/92" in the file's "Get Info" window. 

I can force a fix by entering "1/31/91" (backwards - USA format) as the
date into ResEdit and resaving.

Anybody else with non-USA date formats might have similar problems.
========================
Tom Evans  tom@wcc.oz.au ** ADD ".au" MANUALLY (don't trust "reply") **
Webster Computer Corp P/L, 1270 Ferntree Gully Rd Scoresby, Melbourne 3179
Victoria, Australia 61-3-764-1100  FAX ...764-1179

ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) (02/01/91)

Well, that's just wonderful. I tried the same situation Tom Evans
reported with ResEdit 2.1, to see if they'd fixed the bug yet. You
won't believe what they've done...

2.1 displays dates in American format, regardless!

That's right, my system is set to "Australian" (gritting of teeth)
date format too, but ResEdit 2.1 seems to ignore that.

I think that's stupid. I'm *sure* System 6.0.x includes routines
that will parse dates as well as format them--why can't ResEdit
use these?

Lawrence D'Oliveiro                       fone: +64-71-562-889
Computer Services Dept                     fax: +64-71-384-066
University of Waikato            electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00