I have two related problems:
We use Date fields in our user profiles. Not just for birth but for other activities.
1. When we select a date from the calendar, it displays correctly. After a save, it changes to the preceding day. FYI, we are in the Pacific time zone. While we can trick it by entering the wrong date, that is not a solution for our general users
2. Other than using phpmyadmin, there seems to be no way to erase an accidentally entered date. Our users are not perfect; sometimes they type or enter in the wrong field. We ust have the ability to either select and Delete or have an option on the calendar
Hi, John.
You're using outdated version of JomSocial. Current version is: 3.2.0.5
1. We was writing about it on our blog:
www.jomsocial.com/blog/3-1-0-2-hot-fix-and-bugs-that-are-not
Calendar miss by one day ahead or before. In a highly unlikely event that you expierence issue which will manifest as "one day wrong" date after saving the calendar field, please use your favorite editor to open the following file:
ROOT/components/com_community/libraries/fields/date.php and look for this line
$html .= "dateFormat: 'yy-mm-dd',n";
and replace it with
$html .= "dateFormat: 'yy/mm/dd',n"
Oddly, we did tried to implement this fix into the release, but on every development server of ours it completely breaks the calendar functionality. On the other side, on a sites where the issue happens, seems like the change do the job. These sites are however, very rare and we believe that this issue is actually raised by wrongly configured servers which for whatever reason, do not support yy-mm-dd format.
2. I can't confirm that. I was able to change date in both front- and backend.
1. I updated to 3.2.0.5. Note that Joomla 2.5.20 said it was already up to date and clicking on the update in the JomSocial backend did nothing. I applied your hack. EVERY DATE in JomSocial was deleted. This will cost me many hours of work to repair. I am angry. Are these things tested? In addition, after I applied the fix, Every time I saved the profile it cleared the date. I have backed out the "fix" but now must try to recover the data.
2. Please read my post again. The problem is no way to erase an accidentally entered date. Erase: delete, get rid of, clear, purge .... Our users make mistakes and staff does not have time to use phpmyadmin to clear a field. Of course we can change a date (althouogh off by one day) but we can't CLEAR it
Hi, John.
1. So this fix works for you or not?
2. No, you can't ERASE date to make field EMPTY in front- or backend.
Is it really necessary to ERASE field? Users can correct wrong entry... or this field is not editable for users? Well, if so then only PHPmyAdmin remains.
I do not see my last post although it is 'Pending Support'. To repeat
1. NO it is not fixed. The 'fix' hid all my dates. When I entered a date using the calendar it showed correctly but when I SAVE'ed. the field was clear.
2. YES - It is really necessary to be able to clear a date. Ou r user's sometimes enter the wrong field. Having our non-technical staff need to learn and use phpmyadmin (which is dangerous!) is NOT and acceptable solution
Hi, John.
1. Ok, please, apply fix and let me know. I'll investigate why dates are hidden.
2. Only solution for this is to request a feature here:
uservoice.jomsocial.com/forums/101561-feature-request
or here:
www.jomsocial.com/community/groups/viewg...stions-for-the-staff