euroexchange: Fix removed APISite.getcurrenttime()
Pywikibot removed method APISite.getcurrenttime replaced with APISite.server_time
This commit is contained in:
@@ -276,7 +276,7 @@ class EuroExchangeBot( pywikibot.bot.BaseBot ):
|
||||
last_update = self.current_job.filepage.latest_file_info.timestamp
|
||||
|
||||
# Get current time
|
||||
now = pywikibot.Site().getcurrenttime()
|
||||
now = pywikibot.Site().server_time()
|
||||
|
||||
# Calculate allowed delta (with tolerance)
|
||||
delta = datetime.timedelta( days=self.current_job.freq, hours=-2 )
|
||||
|
||||
Reference in New Issue
Block a user