Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Issue 11233041: Fix week_of, quarter_of, year_of calculation in my_activity.py (Closed)

Created:
8 years, 2 months ago by cjhopman
Modified:
8 years, 2 months ago
Reviewers:
cmp, M-A Ruel
CC:
chromium-reviews, Dirk Pranke, cmp+cc_chromium.org, M-A Ruel
Visibility:
Public.

Description

Fix week_of, quarter_of, year_of calculation These calculations were not dropping the time from the provided date. And so a week would be Monday 11AM to Monday 11AM when run at 11AM. BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163360

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -3 lines) Patch
M my_activity.py View 1 chunk +10 lines, -3 lines 3 comments Download

Messages

Total messages: 6 (0 generated)
cjhopman
8 years, 2 months ago (2012-10-22 18:20:08 UTC) #1
M-A Ruel
http://codereview.chromium.org/11233041/diff/1/my_activity.py File my_activity.py (right): http://codereview.chromium.org/11233041/diff/1/my_activity.py#newcode151 my_activity.py:151: begin = (datetime_to_midnight(date) - Why not date.date() or simply ...
8 years, 2 months ago (2012-10-22 18:43:14 UTC) #2
cjhopman
http://codereview.chromium.org/11233041/diff/1/my_activity.py File my_activity.py (right): http://codereview.chromium.org/11233041/diff/1/my_activity.py#newcode151 my_activity.py:151: begin = (datetime_to_midnight(date) - On 2012/10/22 18:43:14, Marc-Antoine Ruel ...
8 years, 2 months ago (2012-10-22 18:56:21 UTC) #3
M-A Ruel
http://codereview.chromium.org/11233041/diff/1/my_activity.py File my_activity.py (right): http://codereview.chromium.org/11233041/diff/1/my_activity.py#newcode151 my_activity.py:151: begin = (datetime_to_midnight(date) - On 2012/10/22 18:56:21, cjhopman wrote: ...
8 years, 2 months ago (2012-10-22 19:09:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cjhopman@chromium.org/11233041/1
8 years, 2 months ago (2012-10-22 20:16:04 UTC) #5
commit-bot: I haz the power
8 years, 2 months ago (2012-10-22 20:18:54 UTC) #6
Change committed as 163360

Powered by Google App Engine
This is Rietveld 408576698