Why are you calling `to_time` here?  I'm finding that it changes the timestamp from UTC to the timezone Rails is configured with, which generates invalid UUIDs.