make jan = 1 not 0 (inconsistency with date create from the same string)
links dir inside appdir optional