From 4a96ec2b92de2e3a9f1972674a5643c14642f704 Mon Sep 17 00:00:00 2001 From: deepjyoti30 Date: Fri, 15 May 2020 22:56:48 +0530 Subject: [PATCH] Fixed a bug related to fahrenheit. --- config.json | 2 +- js/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index cb9ddbc..e765b1f 100644 --- a/config.json +++ b/config.json @@ -35,7 +35,7 @@ "disableDate": false, "disableSearchBar": false, "disable24Hour": false, - "disableWeather": true, + "disableWeather": false, "weatherConf": { "location": "Pune India", "unit": "fah" diff --git a/js/main.js b/js/main.js index aa3aedf..84c7fea 100644 --- a/js/main.js +++ b/js/main.js @@ -123,7 +123,7 @@ function updateTimeHook() { } function getFahrenheit(inCelcius) { - return (inCelcius * 9 / 5) + 32 + return ((inCelcius * 9 / 5) + 32).toFixed(2) } function indexUppercase(unformatted) {