[Bug] fixed setAttribute methods' date handling

it was converting date time object to proper format, then just ignoring what it just did