Problem/Motivation

People behave differently during different times of the day. The javascript tracker already collects the visitor's local time.

Steps to reproduce

Proposed resolution

Add a new column to the visitors' table to log the visitor's local time (not a timestamp, no date).

Remaining tasks

  1. Add column
  2. Update tracker service to log local time

User interface changes

API changes

visitor_localtime: the number of seconds since midnight locally

Data model changes

New column

+-----------------------------+-----------------------+------+-----+---------+----------------+
| Field                       | Type                  | Null | Key | Default | Extra          |
+-----------------------------+-----------------------+------+-----+---------+----------------+
| visitor_localtime           | mediumint             | YES  |     | NULL    |                |
+-----------------------------+-----------------------+------+-----+---------+----------------+

Issue fork visitors-3377960

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bluegeek9 created an issue. See original summary.

bluegeek9’s picture

Issue summary: View changes
bluegeek9’s picture

Title: Log visitor's local time » Log visitor local time
Issue summary: View changes
Status: Active » Needs review

This is intended as part of the 8.x-2.17 release.

No views support for visitor_localtime right now. This will probably end up being a customer views field.

  • bluegeek9 committed 38e8ccc8 on 8.x-2.x
    Issue #3377960 by bluegeek9: Log visitor local time
    
bluegeek9’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

bluegeek9’s picture

This issue was resolved. A new release, 8.x-2.17, will be made soon, May 31st.

This is an excellent opportunity to beta test the dev branch, and report any issues.

Contributors (5)

bluegeek9, roshni27, abhishek_gupta1, sarwan_verma, SandeepSingh199

Changelog

Issues: 32 issues resolved.

Changes since 8.x-2.16:

Bug

Feature

Task