The user timezone is not exposed to Views. While I ignore why, here is a patch that exposes it as a field and as a filter.

Comments

juampynr’s picture

StatusFileSize
new1.75 KB

Here is the patch.

juampynr’s picture

Status: Active » Needs review

Changing status to needs review.

z3cka’s picture

Issue summary: View changes

is there a reason that user timezone is not supported?

z3cka’s picture

It seems the patch from #1 results in broken handlers.

stevesmename’s picture

StatusFileSize
new817 bytes
z3cka’s picture

patch from #5 works for me!

stevesmename’s picture

Related issues: +#2450447: Drupal QA is broken for Views 7.x-3.x
stevesmename’s picture

Status: Needs review » Needs work
stevesmename’s picture

Status: Needs work » Needs review
stevesmename’s picture

StatusFileSize
new817 bytes
chris matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 3 year old patch in #10 to user.views.inc does not apply to the latest views 7.x-3.x-dev and if still relevant needs to be rerolled.

Checking patch modules/user.views.inc...
error: while searching for:
    ),
  );

  // login field
  $data['users']['login'] = array(
    'title' => t('Last login'), // The item it appears as on the UI,

error: patch failed: modules/user.views.inc:285
error: modules/user.views.inc: patch does not apply
silvi.addweb’s picture

Status: Needs work » Needs review
StatusFileSize
new791 bytes

@Chris2, Please review my attached patch, where I added timezone field code for latest views 7.x-3.x-dev. Hope this will work for you. Let me know if you have any further issue regarding it.

Thanks!..

damienmckenna’s picture

Issue tags: -Needs reroll
mrcharles’s picture

Hey - I got some value out of #12.

Views Version: 7.x-3.24

Thanks for the patch.