|#1121|+RahulK | using the server time for creating periods, so that client does not convert the date to local timezone, also refactored schedule-period-controller