setfileattributes time issue on AROS

Report any Hollywood bugs here
Post Reply
ntromans
Posts: 54
Joined: Fri Jan 11, 2013 12:06 am

setfileattributes time issue on AROS

Post by ntromans »

Executing the following code on AROS gives an error message 'Invalid date format specification!'

table = {}
table = getfileattributes("test.hws")
debugprint(table.time)
setfileattributes("test.hws",table)

The example code for setfileattributes in the docs also fails. The getfileattributes works fine (correct time string returned). The code works on AmigaOS3. I don't know if this is a specific issue for Hollywood 6 as this is the first time I've used this function.

Cheers,
Nigel.
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: setfileattributes time issue on AROS

Post by airsoftsoftwair »

Seems to work on OS4 and MorphOS as well... I'll have to try it on AROS and see what's wrong there.
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: setfileattributes time issue on AROS

Post by airsoftsoftwair »

Ok, this is indeed a bug but only in the AROS builds. It has been there in all previous Hollywood versions as well. Fixed now, thanks for the report.
Post Reply