Doc #75560 [NEW]: Date time related now error in timestamp and output
| From: | bsmanisha at yahoo dot com | Date: | Thu, 23 Nov 2017 12:32:58 +0000 |
| Subject: | Doc #75560 [NEW]: Date time related now error in timestamp and output | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-15251@lists.php.net to get a copy of this message | ||
From: bsmanisha at yahoo dot com
Operating system: Windows 10
PHP version: master-Git-2017-11-23 (Git)
Package: Date/time related
Bug Type: Documentation Problem
Bug description:Date time related now error in timestamp and output
Description:
------------
---
From manual page: http://www.php.net/function.strtotime
---
Server & Network Information
Hostname: 164.sub-174-215-2.myvzw.com
Proxy: No Proxy or Invisible Proxy Used
Internal LAN IP: standby...
SCRIPT_URL: /more-info-about-you/
SCRIPT_URI: http://www.whatsmyip.org/more-info-about-you/
HTTP_HOST: www.whatsmyip.org
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_ACCEPT: text/html, application/xhtml+xml, application/xml;q=0.9,
*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS
X) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0 Mobile/15B202
Safari/604.1
HTTP_REFERER: http://www.whatsmyip.org/string-timestamp-converter/
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_ACCEPT_ENCODING: gzip, deflate
SERVER_SIGNATURE: <address>Apache/2.2.24 (Unix) DAV/2 mod_fastcgi/2.4.2
mod_ssl/2.2.24 OpenSSL/0.9.8y Server at www.whatsmyip.org Port
80</address>
SERVER_SOFTWARE: Apache/2.2.24 (Unix) DAV/2 mod_fastcgi/2.4.2
mod_ssl/2.2.24 OpenSSL/0.9.8y
SERVER_NAME: www.whatsmyip.org
SERVER_ADDR: 208.64.38.55
SERVER_PORT: 80
REMOTE_PORT: 10038
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING:
REQUEST_URI: /more-info-about-you/
SCRIPT_NAME: /more-info-about-you/index.php
PHP_SELF: /more-info-about-you/index.php
REQUEST_TIME: 1511439923 (Thu, 23 Nov 2017 07:25:23 -0500)
Browser Information
Refered From: http://www.whatsmyip.org/string-timestamp-converter/
User Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS X)
AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0 Mobile/15B202
Safari/604.1
Screen Resolution: 375 x 667 (pixels)
Browser Dimensions: 980 x 1640 (pixels)
Cookie Status: Enabled
Cookies (Only Cookies Visible to WhatsMyIP.org): none
Browser Plugins: No Plugins Installed
Test script:
---------------
Date time timestamp and now related error generating output error in
array regarding input in bug tracking system.
Server & Network Information
Hostname: 164.sub-174-215-2.myvzw.com
Proxy: No Proxy or Invisible Proxy Used
Internal LAN IP: standby...
SCRIPT_URL: /more-info-about-you/
SCRIPT_URI: http://www.whatsmyip.org/more-info-about-you/
HTTP_HOST: www.whatsmyip.org
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_ACCEPT: text/html, application/xhtml+xml, application/xml;q=0.9,
*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS
X) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0 Mobile/15B202
Safari/604.1
HTTP_REFERER: http://www.whatsmyip.org/string-timestamp-converter/
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_ACCEPT_ENCODING: gzip, deflate
SERVER_SIGNATURE: <address>Apache/2.2.24 (Unix) DAV/2 mod_fastcgi/2.4.2
mod_ssl/2.2.24 OpenSSL/0.9.8y Server at www.whatsmyip.org Port
80</address>
SERVER_SOFTWARE: Apache/2.2.24 (Unix) DAV/2 mod_fastcgi/2.4.2
mod_ssl/2.2.24 OpenSSL/0.9.8y
SERVER_NAME: www.whatsmyip.org
SERVER_ADDR: 208.64.38.55
SERVER_PORT: 80
REMOTE_PORT: 10038
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING:
REQUEST_URI: /more-info-about-you/
SCRIPT_NAME: /more-info-about-you/index.php
PHP_SELF: /more-info-about-you/index.php
REQUEST_TIME: 1511439923 (Thu, 23 Nov 2017 07:25:23 -0500)
Browser Information
Refered From: http://www.whatsmyip.org/string-timestamp-converter/
User Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_2 like Mac OS X)
AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0 Mobile/15B202
Safari/604.1
Screen Resolution: 375 x 667 (pixels)
Browser Dimensions: 980 x 1640 (pixels)
Cookie Status: Enabled
Cookies (Only Cookies Visible to WhatsMyIP.org): none
Browser Plugins: No Plugins Installed
Expected result:
----------------
Didnât try running any script error was generated by bug tracking
system
Date / Time Formats
This tool uses PHP's strtotime( ) function.
Some of the formats you can use:
1972-09-24# ISO 8601
72-9-24# Assume 19xx for 69 through 99, 20xx for 00 through 68
72-09-24# Leading zeros are ignored
9/24/72# Common U.S. writing
24 September 1972
24 Sept 72# September has a special abbreviation
24 Sep 72# Three-letter abbreviations always allowed
Sep 24, 1972
24-sep-72
24sep72
day month year
day month
month day year
day-month-year
20:02:00.000000
20:02
8:02pm
20:02-0500# In EST (U.S. Eastern Standard Time)
1 year
1 year ago
3 years
2 days
now
yyyymmdd
Actual result:
--------------
http://164.sub-174-215-2.myvzw.com
http://ipsite.org/3uz4
--
Edit bug report at https://bugs.php.net/bug.php?id=75560&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75560&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75560&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75560&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75560&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75560&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75560&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75560&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75560&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75560&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75560&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75560&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75560&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75560&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75560&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75560&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75560&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75560&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75560&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75560&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75560&r=mysqlcfg