Fixed bug when changing the switching mode while mining.
Date formats