I read bMonth from user;
time_t timestamp = time(NULL);
tm* birthday = localtime(×tamp);
birthday->tm_mon = bMonth-1;
// now the tm_mon is set corectly
time_t birthStamp = mktime(birthday);
// now the tm_mon is 0
Why mktime changes the values?