Fix a SystemStackError that occurs when using time zone aware attributes...

Fix a SystemStackError that occurs when using time zone aware attributes.
This fixes issue #10066