[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Two characters as separators destroy the date
Advertisement

Two characters as separators destroy the date

Moderators: Calcifer, slothy

Two characters as separators destroy the date

Postby tomilipin » Mon Sep 01, 2008 9:06 pm

Hi,
I have a problem with the calendar script...
When using two characters as date separators, the script reads the date improperly.

I have the date: 14.06.1986, 20:30 which is in dd.mm.yyyy, hh:ii format. Notice the space between the coma and the hour (20).
The problem: The script reads the date as 14.06.1986, 00:20, probably treating the space as an hour...

If the space is removed, everything works fine. So it does when the coma is removed. I figured out that only one character may be used as a separator but I really need to use a coma and a space, which is two characters.

A live demo of the issue can be viewed here: http://www.tomilipin.pdg.pl/Calendar.htm
Feel free to look at the source code (it would be recommended :wink: )
tomilipin
 
Posts: 4
Joined: Mon Sep 01, 2008 8:42 pm

Postby Batalf » Tue Sep 02, 2008 11:50 am

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby tomilipin » Tue Sep 02, 2008 12:20 pm

The problem isn't solved... Perhaps you haven't noticed the time - this is the issue here. In the input field i have 20:30 (8:30 PM) and when I click Pick Date to show the calendar, it it reads the time from the input as 00:30. When I then want to change the time it puts the time all right, but then again can't read it properly...

I think this issue occurs only in Firefox (my version 3.0.1) because Internet Explorer (version 6.0) reads the date properly. However, if I click "DziÅ›" (which is "Today"), or want to change the month or the year, the bottom part of the calendar disappears :?

I'm pretty sure that this has to do with the 2-character date separator.

BTW. Did you use IE to view my page?!
tomilipin
 
Posts: 4
Joined: Mon Sep 01, 2008 8:42 pm

Postby Batalf » Tue Sep 02, 2008 12:52 pm

I have uploaded a new version of the 1.9 zip file. Please try to replace your dhtml suite js files with the one's inside the js folder there
Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby tomilipin » Tue Sep 02, 2008 2:14 pm

I've replaced the needed files and now the calendar works perfectly in Firefox :)
However... in IE the bug with disappearing bottom part of the calendar still exists :(
The 2-char separator works fine but, again, changing month/year by clicking arrows, or choosing today's date result in the bottom part dissapearing.
What's interesting, this "Time" section reappears when June 1986 is selected back.
So now we have limited the issue only to Internet Explorer... Please help, I can't figure out what to do...

I've updated http://www.tomilipin.pdg.pl/Calendar.htm so you can check it out live.
tomilipin
 
Posts: 4
Joined: Mon Sep 01, 2008 8:42 pm

Postby tomilipin » Thu Sep 04, 2008 10:15 am

A moment ago I discovered that the bug with disappearing bottom section of the calendar exists even in your official demo at http://www.dhtmlgoodies.com/packages/dh ... dar-1.html
It occurs only in IE (my version 6.0), in FF works perfectly.

So... what can I do now? Or what should you - developers od the script- do?
tomilipin
 
Posts: 4
Joined: Mon Sep 01, 2008 8:42 pm


Return to Calendar script questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron