lightmaster / Meteobridge-Weather34-Template

Github repository for the Meteobridge version of the weather34 template
Other
18 stars 10 forks source link

Station clock error #64

Open steepleian opened 4 years ago

steepleian commented 4 years ago

If station clock is set to 24 hour clock, after midnight the clock reads 24:MM:SS rather than 00:MM:SS.

To correct, change line 83 of updater.php from: -

var c=e.getHours()<?php if ($clockformat == '12') { echo '% 12 || 12';} else { echo '% 24 || 24';}?>;

To: -

var c=e.getHours()<?php if ($clockformat == '12') { echo '% 12 || 12';} else { echo '% 24 || 00';}?>;

MrMan1968 commented 4 years ago

I have this error. However in your post above both the from and to code is exactly the same...

steepleian commented 4 years ago

Try this: -

var c=e.getHours()<?php if ($clockformat == '12') { echo '% 12 || 12';} else { echo '% 24 || 00';}?>;

On Sat, 2 May 2020 at 00:19, MrMan1968 notifications@github.com wrote:

I have this error. However in your post above both the from and to code is exactly the same...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lightmaster/Meteobridge-Weather34-Template/issues/64#issuecomment-622607801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMVT7RZIFOY6IL4KPIYF5LRPNKIVANCNFSM4KO5EOXA .

MrMan1968 commented 4 years ago

Nice one steepleian, that fixed it! Thank you.