Fix #1334, modify gitignore, fix dates in template manager if using GIT repository 

Fix #1334 PHP Notice: Undefined variable: category
Add gitignore for less-generated css file
Fix dates in template manager if using GIT repository