Patch #22320 » 0003-simplify-User-today.patch
| app/models/user.rb | ||
|---|---|---|
| 510 | 510 |
if time_zone.nil? |
| 511 | 511 |
Date.today |
| 512 | 512 |
else |
| 513 |
# TODO replace with time_zone.today |
|
| 514 |
Time.now.in_time_zone(time_zone).to_date |
|
| 513 |
time_zone.today |
|
| 515 | 514 |
end |
| 516 | 515 |
end |
| 517 | 516 | |
- « Previous
- 1
- 2
- 3
- Next »