snap-stanford/snap — pull request #36 by floriangeigl (2014-01-16 23:00:35+00:00)
Title: Off-by-one in TTm::GetCurLocTm().GetMonth()

Hy,

currently the call of the following function fails at the IAssert in line 52 (TTm::GetCurLocTm().GetMonth()). The reason therefore is, that the "Month" variable starts with 0 = january and the Assert checks 1<=Month<=12.

I think changing
```
TStr GetMonthNm() const {return TTmInfo::GetMonthNm(Month);}
```
to
```
TStr GetMonthNm() const {return TTmInfo::GetMonthNm(Month+1);}
```
in line 276 tm.h should fix this bug.

Kind regards from Austria