Store pattern instead of parsed result sin currentPattern. Fixes issue with selecting the current pattern when no pattern is provided for format()