lavolp3 / MMM-AVStock

MagicMirror module for displaying stock price with yfinance API
MIT License
39 stars 18 forks source link

Is there a way to change to updated time to 12 hour format #15

Closed Djninja926 closed 4 years ago

Djninja926 commented 4 years ago

Is there a way to change to the updated time to 12-hour format because it doesn't work well with the other things in my smart mirror config.

eouia commented 4 years ago

Well you can modify timeFormat: "" to whatever as your wish. Current default is "DD-MM HH:mm", so, it will show time like 01-21 23:45. If you set it as "Mo DDD, hh:mm a", it will show like 21st Jan, 11:45 am. Ref. https://momentjs.com/docs/#/displaying/format/

Djninja926 commented 4 years ago

thanks this method worked