Uniform times for max age calculation in pwbi formatter

Created on 28 March 2025, 2 months ago

Problem/Motivation

Power BI formatter render array calculates max age based on:

  • Token expiration time using Drupal time
  • Current time using php time

This could lead to inconsistencies since the Drupal time applies timezone and PHP time does not.

Steps to reproduce

  1. Create an embed
  2. Visit the embed page as anonymous
  3. Wait the token to expire
  4. Visit the embed page as anonymous

Proposed resolution

Uniform functions used to calculate dates, use or PHP time or Drupal time.

Remaining tasks

  1. Provide tests (if possible)
  2. Apply fix
🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇪🇸Spain aaron gil martinez Zaragoza

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024