mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-02 06:16:11 +00:00
Move libraries import
This commit is contained in:
parent
3ea6890c34
commit
b2bc90cb06
209 changed files with 36 additions and 14941 deletions
|
@ -17,6 +17,7 @@ import xbmcgui
|
|||
import xbmcvfs
|
||||
|
||||
from . import _
|
||||
from dateutil import tz, parser
|
||||
|
||||
#################################################################################################
|
||||
|
||||
|
@ -449,8 +450,6 @@ def convert_to_local(date):
|
|||
|
||||
''' Convert the local datetime to local.
|
||||
'''
|
||||
from libraries.dateutil import tz, parser
|
||||
|
||||
try:
|
||||
date = parser.parse(date) if type(date) in (unicode, str) else date
|
||||
date = date.replace(tzinfo=tz.tzutc())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue