add year parsing to commonLib and also fix locale initialization (was missing, whoops)