Date - 1 day in Address Book
Date - 1 day in Address Book
- Subject: Date - 1 day in Address Book
- From: Steve Roy <email@hidden>
- Date: Mon, 21 Jul 2003 10:05:07 -0400
Good morning,
Here's a weird one. I have a user who says that dates imported into Address Book
with my Address Book Importer application are wrongly rolled back by one day. I
can't reproduce it and he seems to be the only one who sees it. His date format
is Switzerland (Italian). I tried setting my system like his without seeing this
problem.
With an iteration of small scripts sent to him, I was able to narrow it down to
this. The following works, which shows that it's not a bug in AppleScript.
set d to "2.9.1970"
set theDate to date d
theDate as string
--> "MercoledC,, 2 settembre 1970 0:00:00"
However the following demonstrates the problem. The script doesn't report any
error, but Address Book shows the date as September 1st instead of September
2nd.
set d to "2.9.1970"
set theDate to date d
tell application "Address Book"
set thePerson to make new person at end with properties {first name:"Foo",
last name:"Bar"}
tell thePerson
set birth date to theDate
end tell
save addressbook
end tell
Is that a known bug in Address Book?
Steve
--
Steve Roy <email@hidden>
Personal homepage: <
http://homepage.mac.com/sroy>
Projects homepage: <
http://www.roydesign.net>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.