Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10323

civicrm_cache.created_date is using 12H time

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.3
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Noticed while debugging fix for CRM-10264 that CRM_Core_BAO_Cache::setItem() was creating all cache entries in hours 0-12, as it used date('Ymdhis') not date('YmdHis'). This was not an issue while cache lifetimes were measured in days.

      To verify that all your CiviCRM cache entries were created in the AM -

      SELECT DISTINCT EXTRACT(HOUR FROM created_date) FROM civicrm_cache;

        Attachments

          Activity

            People

            • Assignee:
              xurizaemon Chris Burgess
              Reporter:
              xurizaemon Chris Burgess
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: