Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Dec 2008 at 08:02 UTC
Updated:
22 Jan 2009 at 20:30 UTC
Jump to comment: Most recent file
this patch makes a change to _uc_reports_timezone_offset(), using the user's timezone if possible before falling back on the sitewide default. This behavior was observed in format_date().
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | uc_reports.timezone.help_.patch | 5.2 KB | cha0s |
| uc_reports.timezone.2.patch | 728 bytes | cha0s |
Comments
Comment #1
Island Usurper commentedHooray for doing things as the user expects.
Comment #2
rszrama commentedI know this has already been committed and all, but I'm wondering if it's really a good thing for reports to differ based on the user's timezone. In terms of sales and when things go through, it makes sense to me that you'd want to have a single timezone for reporting... particularly the store's own timezone (which I'd assume is the site's timezone). Wish I had chimed in sooner, but are there any other thoughts here? In terms of financial reporting, it's just not really something that should be variable. Might have to get some input from someone actually running a business here.
Comment #3
cha0s commentedYou raise a good point... I'm totally cool if you wanna revert it, it's not that big of a change at all. :)
Maybe we should just display on the reports "All reports are [timezone offset] GMT" or something. That should eliminate confusion while keeping things consistent.
Comment #4
rszrama commentedOh! I like that idea. :)
I image you can just use the timezone text that Drupal uses for the timezone selection form.
Comment #5
Island Usurper commentedReverted the patch since it kept #344890: Timezone causes off-by-one error in reports (use Drupal time instead of server's) from being taken care of easily.
Comment #6
cha0s commentedComment #7
cha0s commentedHere's a patch for the timezone offset display on sales reports. Also, I went ahead and optimized reports' hook_help logic a bit.
Comment #8
Island Usurper commentedYou forgot the
break;statements. :)Fixed and committed.