|
|
| version 1.1.1.1, 2012/02/21 23:48:02 | version 1.1.1.3, 2013/07/22 01:32:05 |
|---|---|
| Line 2 | Line 2 |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | PHP Version 5 | | | PHP Version 5 | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2013 The PHP Group | |
| +----------------------------------------------------------------------+ | +----------------------------------------------------------------------+ |
| | This source file is subject to version 3.01 of the PHP license, | | | This source file is subject to version 3.01 of the PHP license, | |
| | that is bundled with this package in the file LICENSE, and is | | | that is bundled with this package in the file LICENSE, and is | |
| Line 64 PHPAPI char *php_std_date(time_t t TSRMLS_DC) | Line 64 PHPAPI char *php_std_date(time_t t TSRMLS_DC) |
| return str; | return str; |
| } | } |
| if (PG(y2k_compliance)) { | snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT", |
| snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT", | day_short_names[tm1->tm_wday], |
| day_short_names[tm1->tm_wday], | tm1->tm_mday, |
| tm1->tm_mday, | mon_short_names[tm1->tm_mon], |
| mon_short_names[tm1->tm_mon], | tm1->tm_year + 1900, |
| tm1->tm_year + 1900, | tm1->tm_hour, tm1->tm_min, tm1->tm_sec); |
| tm1->tm_hour, tm1->tm_min, tm1->tm_sec); | |
| } else { | |
| snprintf(str, 80, "%s, %02d-%s-%02d %02d:%02d:%02d GMT", | |
| day_full_names[tm1->tm_wday], | |
| tm1->tm_mday, | |
| mon_short_names[tm1->tm_mon], | |
| ((tm1->tm_year) % 100), | |
| tm1->tm_hour, tm1->tm_min, tm1->tm_sec); | |
| } | |
| str[79] = 0; | str[79] = 0; |
| return (str); | return (str); |