Skip to content

Commit

Permalink
Merge pull request #1518 from obozdag/patch-1
Browse files Browse the repository at this point in the history
Small typo: changed setCreatedOn to setCreatedAt
  • Loading branch information
lonnieezell authored Nov 20, 2018
2 parents 35cf249 + f79b406 commit 051e171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/models/entities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class property will be access through the ``setCreatedAt()`` and ``getCreatedAt(

In the ``setPassword()`` method we ensure that the password is always hashed.

In ``setCreatedOn()`` we convert the string we receive from the model into a DateTime object, ensuring that our timezone
In ``setCreatedAt()`` we convert the string we receive from the model into a DateTime object, ensuring that our timezone
is UTC so we can easily convert the the viewer's current timezone. In ``getCreatedAt()``, it converts the time to
a formatted string in the application's current timezone.

Expand Down

0 comments on commit 051e171

Please sign in to comment.