I am using this code to name files in an .sh file in wheezy for Pi camera .jpg's.
filename=$(date -u +"%Y-%m-%d_%H_%M")_%01d-T2.jpg
These are the output file names.
2015-12-08_16_32_1-T2.jpg
2015-12-08_16_32_2-T2.jpg
2015-12-08_16_52_1-T2.jpg
2015-12-08_16_52_2-T2.jpg
.
.
It is 6 hours off.(I am in Mountain standard)
I suspect the -u is the universal time, but I can't find any thing on changing it on the web.
Am I on the right path?
How can I set to MS time?