Fix #3228: added an ability to migrate to the certain time

Fix #3228: added an ability to migrate to the certain time.

Fixed some minor issues in the original PR, added change log line, fixed CS issues.