Fix last modified timestamp generation.