Wordpress Widget Generated Archives URLs do not work when using custom permalinks

Using a slightly modified version of the twentyten theme.

For my custom permalinks I am using:

/%monthnum%/%day%/%year%/%postname%

All my articles work and for example display as:
http://www.domain.com/06/20/2010/article-name

From the Admin, I placed the default “Archives” widget into the side bar and for example it generates a link to:

However when clicking on that link, it takes me to a wp 404 page that says:

Apologies, but the page you requested could not be found. Perhaps searching will help.


If I put permalinks back to default, the link it generates works. I have been googling and searching the forums for hours and have no clue how to even begin solving this issue.

I tried disabling all my plugins but still a no go.

Any advice would be greatly appreciated.

Thank you in advance.

Okay in addition to above, it seems it is just the monthly generated archives links that do not work.

For example this works: (Shows archive for 06/20/2010
http://www.mydomain.com/06/20

But this doesn’t: (which is generated by the default archive widget)
http://www.mydomain.com/06/2010

I get an error too, dates are stored in mysql (the database that WP uses) as yyy-mm-dd. I thought WP would be smarter than that…

Okay, I solved it by changing the permalinks from:

/%monthnum%/%day%/%year%/%postname%

to

/%year%/%monthnum%/%day%/%postname%

The year has to come first… is this normal functionality or a bug?