Skip to content

Commit

Permalink
another missing spot
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 committed Aug 19, 2024
1 parent 71958b1 commit e6edb61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pay-api/src/pay_api/models/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Model to handle all operations related to Routing Slip Comment data."""
from datetime import datetime
from datetime import datetime, timezone
from sqlalchemy.orm import relationship
from sqlalchemy import ForeignKey
from sqlalchemy.ext.declarative import declared_attr
Expand Down Expand Up @@ -53,7 +53,7 @@ class Comment(BaseModel):

id = db.Column(db.Integer, primary_key=True, autoincrement=True)
comment = db.Column(db.String(4096))
timestamp = db.Column('timestamp', db.DateTime(timezone=True), default=datetime.utcnow)
timestamp = db.Column('timestamp', db.DateTime(timezone=True), default=lambda: datetime.now(tz=timezone.utc))
# Parent relationship
routing_slip_number = db.Column(db.String(), ForeignKey('routing_slips.number'), index=True)
routing_slip = relationship(RoutingSlip, foreign_keys=[routing_slip_number], lazy='select', innerjoin=True)
Expand Down

0 comments on commit e6edb61

Please sign in to comment.