Bug #79198 [Fbk->Opn]: Incorrect abbrv. MONTH
| From: | fullershane9376 at gmail dot com dot com | Date: | Thu, 30 Jan 2020 18:59:34 +0000 |
| Subject: | Bug #79198 [Fbk->Opn]: Incorrect abbrv. MONTH | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225257@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79198&edit=1
ID: 79198
User updated by: fullershane9376 at gmail dot com dot com
Reported by: fullershane9376 at gmail dot com dot com
Summary: Incorrect abbrv. MONTH
-Status: Feedback
+Status: Open
Type: Bug
Package: Date/time related
Operating System: Windows 10
PHP Version: 7.2.27
Block user comment: N
Private report: N
New Comment:
<? php
$abrv_month = strtoupper(date("M", mktime(0, 0, 2, $numeric_month, $cur_date,
$four_digit_year)));
echo "$abrv_month";
?>
Previous Comments:
------------------------------------------------------------------------
[2020-01-30 18:22:11] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2020-01-30 18:20:25] fullershane9376 at gmail dot com dot com
Description:
------------
Incorrect output from specific input
Test script:
---------------
strtoupper(date("M", mktime(0, 0, 0, 2, $cur_date, $four_digit_year)));
Expected result:
----------------
expected result FEB
Actual result:
--------------
actual result MAR
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79198&edit=1