Fix bug with updated geo-tz package
This commit is contained in:
@@ -89,7 +89,7 @@ async function getLocalWateringData( coordinates: GeoCoordinates ): Promise< Wat
|
||||
* @return The TimeData for the specified coordinates.
|
||||
*/
|
||||
function getTimeData( coordinates: GeoCoordinates ): TimeData {
|
||||
const timezone = moment().tz( geoTZ( coordinates[ 0 ], coordinates[ 1 ] ) ).utcOffset();
|
||||
const timezone = moment().tz( geoTZ( coordinates[ 0 ], coordinates[ 1 ] )[ 0 ] ).utcOffset();
|
||||
const tzOffset: number = getTimezone( timezone, true );
|
||||
|
||||
// Calculate sunrise and sunset since Weather Underground does not provide it
|
||||
|
||||
Reference in New Issue
Block a user