Skip to content

utcnow -> now #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions conditional/blueprints/attendance.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def display_attendance_cm():
return render_template(request,
'attendance_cm.html',
username=user_name,
date=datetime.utcnow().strftime("%Y-%m-%d"))
date=datetime.now().strftime("%Y-%m-%d"))


@attendance_bp.route('/attendance_ts')
Expand All @@ -162,7 +162,7 @@ def display_attendance_ts():
return render_template(request,
'attendance_ts.html',
username=user_name,
date=datetime.utcnow().strftime("%Y-%m-%d"))
date=datetime.now().strftime("%Y-%m-%d"))


@attendance_bp.route('/attendance_hm')
Expand All @@ -178,7 +178,7 @@ def display_attendance_hm():
return render_template(request,
'attendance_hm.html',
username=user_name,
date=datetime.utcnow().strftime("%Y-%m-%d"),
date=datetime.now().strftime("%Y-%m-%d"),
members=get_non_alumni_non_coop(internal=True))


Expand Down
4 changes: 2 additions & 2 deletions conditional/blueprints/slideshow.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def slideshow_intro_display():
return render_template(request,
'intro_eval_slideshow.html',
username=user_name,
date=datetime.utcnow().strftime("%Y-%m-%d"),
date=datetime.now().strftime("%Y-%m-%d"),
members=display_intro_evals(internal=True))


Expand Down Expand Up @@ -96,7 +96,7 @@ def slideshow_spring_display():
return render_template(request,
'spring_eval_slideshow.html',
username=user_name,
date=datetime.utcnow().strftime("%Y-%m-%d"),
date=datetime.now().strftime("%Y-%m-%d"),
members=display_spring_evals(internal=True))


Expand Down
2 changes: 1 addition & 1 deletion conditional/models/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def migrate_models():
from datetime import datetime
members = [m['uid'][0].decode('utf-8') for m in ldap.ldap_get_onfloor_members()]
for m in members:
db.session.add(models.OnFloorStatusAssigned(m, datetime.utcnow()))
db.session.add(models.OnFloorStatusAssigned(m, datetime.now()))
print("END: ON FLOOR")

print("BEGIN: SPRING EVALS")
Expand Down
2 changes: 1 addition & 1 deletion conditional/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def __init__(self, uid, description, due):
self.uid = uid
self.description = description
self.date_due = due
self.date_created = datetime.utcnow()
self.date_created = datetime.now()
self.status = "Pending"
self.active = True

Expand Down