Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GarkGarcia committed Sep 27, 2020
1 parent 6833fcc commit 2f3f4c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mathics/builtin/datentime.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,10 @@ class SystemTimeZone(Predefined):
"""

name = '$SystemTimeZone'
value = Real(-time.timezone / 3600.)

def evaluate(self, evaluation):
return Real(-time.timezone / 3600.)
return self.value


class TimeZone(Predefined):
Expand All @@ -567,8 +568,7 @@ class TimeZone(Predefined):
"""

name = "$TimeZone"
value = Real(-time.timezone / 3600.)
attributes = []
value = SystemTimeZone.value.copy()

rules = {
"$TimeZone": str(value),
Expand All @@ -581,7 +581,7 @@ def apply(self, lhs, rhs, evaluation):
return rhs

def evaluate(self, evaluation) -> Real:
return Real(self.value)
return self.value


class TimeUsed(Builtin):
Expand Down

0 comments on commit 2f3f4c7

Please sign in to comment.