Fix post date setting update.

The code that tries to update the post date stored in the database when an assignment is synchronised isn't working correctly.

This is for v2014012409.