create new table annual_billing

This commit is contained in:
venusbb
2017-10-18 15:09:05 +01:00
parent 92b50a26d3
commit b2fa7cdd83
5 changed files with 75 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ def get_financial_year(year):
def get_april_fools(year):
"""
This function converts the start of the financial year April 1, 00:00 as BST (British Standard Time) to UTC,
the tzinfo is lastly removed from the datetime becasue the database stores the timestamps without timezone.
the tzinfo is lastly removed from the datetime because the database stores the timestamps without timezone.
:param year: the year to calculate the April 1, 00:00 BST for
:return: the datetime of April 1 for the given year, for example 2016 = 2016-03-31 23:00:00
"""