fixed gensched year + 1900

The year returned by localtime is year - 1900.
Added 1900 to fix the problem.