Check-in Number:
|
5537 | |
Date: |
2006-Jul-29 11:15:09 (local)
2006-Jul-29 09:15:09 (UTC) |
User: | rse |
Branch: | |
Comment: |
use ctime |
Tickets: |
#111 | |
unable to build ossp js with file object |
|
Inspections: |
|
Files: |
|
ossp-pkg/js/ChangeLog 1.12 -> 1.13
--- ChangeLog 2006/07/29 09:14:40 1.12
+++ ChangeLog 2006/07/29 09:15:09 1.13
@@ -18,7 +18,7 @@
Alfred Reibenschuh <alfred.reibenschuh@it-austria.com>]
o Increase portability by gracefully downgrading the stat(2) use of
- st_birthtime to st_birthtimensec or even st_mtime.
+ st_birthtime to st_birthtimensec or even st_ctime.
[Ralf S. Engelschall <rse@engelschall.com>,
Andrew Vajoczki <vajoczki@rogers.com>]
|
|
ossp-pkg/js/src/jsfile.c 1.8 -> 1.9
--- jsfile.c 2006/07/29 09:08:15 1.8
+++ jsfile.c 2006/07/29 09:15:10 1.9
@@ -2707,7 +2707,7 @@
#else
/* not really correct, but the only possible fallback on not
fully POSIX compliant platforms. */
- t = (time_t)(info.st_mtime);
+ t = (time_t)(info.st_ctime);
#endif
tm = localtime(&t);
*vp = OBJECT_TO_JSVAL(js_NewDateObject(cx, tm->tm_year + 1900,
|
|