Current time does not get's update on page refresh or other page as well.

Created on 2 November 2023, about 1 year ago

Hey,

Thanks for the wonderful module I have tried this module and found the cache issue on page load.
The Time & date does not get update frequently on page load or even other pages as well.

It seems the cache issue in your block file you must include the Drupal cache for frequently updates of time and date.

Another one is, You must include some short description in your README.md file. It is currently just showing "## Custom Block showing the current date format" this text.
There are some PHPCS warning in your CurrentDateBlock.php file here is the test report. Please follow the warning and apply fixes.

 24 | ERROR | [x] Opening brace should be on the same line as the
    |       |     declaration
 28 | ERROR | [x] Expected 1 blank line before function; 0 found
 29 | ERROR | [x] Opening brace should be on the same line as the
    |       |     declaration
 41 | ERROR | [x] Opening brace should be on the same line as the
    |       |     declaration
 44 | ERROR | [x] Expected 1 space before "="; 0 found
 45 | ERROR | [x] Functions must not contain multiple empty lines in
    |       |     a row; found 2 empty lines
 57 | ERROR | [x] Opening brace should be on the same line as the
    |       |     declaration
 62 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected
    |       |     "TRUE" but found "true"
 74 | ERROR | [x] Opening brace should be on the same line as the
    |       |     declaration
 78 | ERROR | [x] Expected 1 blank line after function; 2 found
 81 | ERROR | [x] Expected 1 newline at end of file; 2 found

Thanks!

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India AnokR

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

Comments & Activities

Production build 0.71.5 2024