added update count for newer logger state detection
added optional locale argument to date func