Your manual method gets the time in the current time zone, but it is actually expressed in UTC (as indicated by the Z
time zone). So actually the value parsed by Yaml seems to be the correct one.
I am puzzled about the actual value though, CST (Central Standard Time USA) should be 6 hours behind UTC, but you get 8 hours ahead.