Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Proper week numbers
Reinier
Member

Posts: 10
Registered: 11/3/2003
Location: The Netherlands
Member Is Offline
posted on 11/30/2003 at 12:47 PM Reply With Quote
Proper week numbers


Hi,

The week numbers displayed are not ISO-8601 valid.
You should change the following code in calendar.php:

$x=round(date('z', mktime(0, 0, 0, $m, $d + 1 - date('w', mktime(0, 0, 0, 1, 1, $y)), $y)) / 7) +1 ;

into:

$x=date( "W" , strtotime( $y.'-'. $m.'-'.$d ) ) ;

You need PHP > 4.1.0 for this.
View User's Profile View All Posts By User U2U Member
cmacalvary
Member

Posts: 63
Registered: 11/27/2005
Location: http://events.cmacalvary.org
Member Is Offline
posted on 11/28/2005 at 05:51 PM Reply With Quote

do you know if they implemented this change?
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free/Trial Script Download Free Download
Product Documentation Documentation
Documentation page
Change Log
Support Forum Support Forum
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004