Refactor view shared file, move diff to file.py
Fixed datetime convertion error in windows.