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.

I suggest we merge this before 1.1.15 release.