Skip to content
Snippets Groups Projects
Commit 1f312673 authored by Dario Barghini's avatar Dario Barghini
Browse files

Reverted last commit. Probably it makes more sense to use local datetime

parent 2f474ba4
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,8 @@ class device(observatory): ...@@ -181,7 +181,8 @@ class device(observatory):
def define_filenames(self): def define_filenames(self):
# Filenames should follow a standard based on observatory name and date. # Filenames should follow a standard based on observatory name and date.
date_time_file = self.read_datetime()-datetime.timedelta(hours=12) date_time_file = self.local_datetime(\
self.read_datetime())-datetime.timedelta(hours=12)
date_file = date_time_file.date() date_file = date_time_file.date()
yearmonth = str(date_file)[0:7].replace('-','') yearmonth = str(date_file)[0:7].replace('-','')
yearmonthday = str(date_file)[0:10].replace('-','') yearmonthday = str(date_file)[0:10].replace('-','')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment