static lib now handles arabic and thai dates correctly