? ? Pending

User tests: Successful: 2 RohanModi06, srishty-07 Unsuccessful: 0

avatar himanshu007-creator
himanshu007-creator
20 Feb 2021

Pull Request for Issue #32286 .

Summary of Changes

Earlier , Error showed up code>DateTime::setTimezone(): Argument #1 ($timezone) must be of type DateTimeZone, null given in both cases.
But after these changes, new file is successfully

Testing Instructions

  • Go to System > Site Templates
  • Select Cassiopeia Details and Files
  • Press New File from the toolbar
  • From the left side select the html/mod_menu folder
  • Set File Name to exactly this: index-20210203-135009
  • Set File Type to .php
  • Press Create

Actual result BEFORE applying this Pull Request

Error shows up DateTime::setTimezone(): Argument #1 ($timezone) must be of type DateTimeZone, null given

Expected result AFTER applying this Pull Request

File created
2021-02-20 (2)

Documentation Changes Required

I guess NO.

avatar himanshu007-creator himanshu007-creator - open - 20 Feb 2021
avatar himanshu007-creator himanshu007-creator - change - 20 Feb 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Feb 2021
Category Libraries
avatar himanshu007-creator himanshu007-creator - test_item - 20 Feb 2021 - Tested successfully
avatar himanshu007-creator
himanshu007-creator - comment - 20 Feb 2021

I have tested this item successfully on 5304ee6

patch works fine and it is able to solve the issue. New file gets created without displaying any error.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32477.

avatar brianteeman
brianteeman - comment - 20 Feb 2021

Please review and fix the code style errors https://ci.joomla.org/joomla/joomla-cms/40234/1/6

avatar himanshu007-creator himanshu007-creator - change - 20 Feb 2021
Labels Added: ?
avatar chmst
chmst - comment - 20 Feb 2021

@HimAnshu007 thank you! A developer of course must test his own code, but there is a rule: A pr must be tested successfully by two other testers to be valid.

avatar ceford
ceford - comment - 22 Feb 2021

I followed the testing instructions and without applying the patch the file got created:

File created.
Editing file "‎/html/mod_menu/index-20210203-135009.php" in template "cassiopeia".

Did I miss something? I have just installed a new clone of the joomla-cms repo.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32477.

avatar joomdonation
joomdonation - comment - 22 Feb 2021

@ceford You can only see the error if you are using PHP 8.

avatar himanshu007-creator
himanshu007-creator - comment - 22 Feb 2021

I followed the testing instructions and without applying the patch the file got created:

File created.
Editing file "‎/html/mod_menu/index-20210203-135009.php" in template "cassiopeia".

Did I miss something? I have just installed a new clone of the joomla-cms repo.

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32477.

Hi @ceford , if you try this in PHP-8 you will get the following result.

2021-02-22 (1)

avatar srishty-07 srishty-07 - test_item - 25 Feb 2021 - Tested successfully
avatar srishty-07
srishty-07 - comment - 25 Feb 2021

I have tested this item successfully on 6e88a4e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32477.

avatar bembelimen bembelimen - change - 26 Feb 2021
Title
Update Date.php
[4.0] Update Date.php
avatar bembelimen bembelimen - edited - 26 Feb 2021
avatar RohanModi06 RohanModi06 - test_item - 13 Mar 2021 - Tested successfully
avatar RohanModi06
RohanModi06 - comment - 13 Mar 2021

I have tested this item successfully on 6e88a4e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32477.

avatar Quy Quy - change - 15 Mar 2021
Status Pending Ready to Commit
avatar Quy
Quy - comment - 15 Mar 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32477.

avatar Quy Quy - edited - 15 Mar 2021
avatar himanshu007-creator
himanshu007-creator - comment - 15 Mar 2021

Thank you

avatar rdeutz rdeutz - close - 15 Mar 2021
avatar rdeutz rdeutz - merge - 15 Mar 2021
avatar rdeutz rdeutz - change - 15 Mar 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-03-15 15:00:09
Closed_By rdeutz
Labels Added: ?

Add a Comment

Login with GitHub to post a comment