Fixed a bug related to fahrenheit.
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
"disableDate": false,
|
"disableDate": false,
|
||||||
"disableSearchBar": false,
|
"disableSearchBar": false,
|
||||||
"disable24Hour": false,
|
"disable24Hour": false,
|
||||||
"disableWeather": true,
|
"disableWeather": false,
|
||||||
"weatherConf": {
|
"weatherConf": {
|
||||||
"location": "Pune India",
|
"location": "Pune India",
|
||||||
"unit": "fah"
|
"unit": "fah"
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ function updateTimeHook() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getFahrenheit(inCelcius) {
|
function getFahrenheit(inCelcius) {
|
||||||
return (inCelcius * 9 / 5) + 32
|
return ((inCelcius * 9 / 5) + 32).toFixed(2)
|
||||||
}
|
}
|
||||||
|
|
||||||
function indexUppercase(unformatted) {
|
function indexUppercase(unformatted) {
|
||||||
|
|||||||
Reference in New Issue
Block a user