By jordiverges on Tuesday, 28 January 2020
Replies 7
Likes 0
Views 674
Votes 0
Hello,

I'm using the Custom Layouts feature to customize the Event Detail Page. I want to show how old get my web users in that Event Detail Page, by using the "Birthday Age" field, but seems JEVAGE tag doesn't calculate it well when people is older than 50 years (now at 2020). Birthday events are imported from a Google Calendar using the URL method, and it's working fine with young people. The repetitive event is created at the borning year, but it seems the code only takes into account borning dates from 1970.

Is my feeling correct? Is there an easy way to edit some code and workaround the bug?

Thank you!
Hello,

This is a native Linux calculation it's from 1970 when computers were born they don't be back before 1970 :/.

Is this for JEvents Tags using Birthday Age field is that correct? Can we see a screenshot of your setup?

Many thanks
Tony
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I think you're asking me for that:


PHP Version : 7.2.5
MySQL Version : 5.5.5-10.1.26-MariaDB-0+deb9u1
Server Information : Linux vxhcg-24.srv.cat 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : Yes
Max Input Vars ? : 1000
Club code set? : No
User Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36
Joomla : 3.9.14
component_com_jevents : 3.4.50
component_com_jce : 2.8.3
module_mod_jevents_cal : 3.4.50
module_mod_jevents_custom : 3.4.50
module_mod_jevents_filter : 3.4.50
module_mod_jevents_latest : 3.4.50
module_mod_jevents_legend : 3.4.50
module_mod_jevents_switchview : 3.4.50
plugin_content_jevents : 3.4.50
plugin_finder_jevents : 3.4.50 (not enabled)
plugin_installer_jeventsinstaller : 3.4.50
plugin_search_eventsearch : 3.4.50
plugin_system_gwejson : 3.4.50


And here it is my customized code using Birthday Age field (in bold):

{{Títol:TITLE}}
Descripció: {{Descripció:DESCRIPTION}}
Informació extra: {{Informació extra:EXTRAINFO}}
Anys: {{Birthday Age:JEVAGE}}
Calendari: {{Categoria:CATEGORY}}

It's the only untranslated field I'm using. Could it mean something...?

Thanks
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

So I've checked this. I've created an event which started in 1968 and also 1971, repeated yearly and it shows the correct ages always

Can you give me logins and how to recreate the issue please? See:
https://www.dropbox.com/s/ruodwhqjlopvq3z/Age_Field_Test.mkv?dl=0

Many thanks
Tony
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Thanks for your time and feedback. I've done some testing after your video reply.

- Component generated events before 1970 don't fail at all in my site, as you pointed.

- Imported google calendar events still "failing", obviously, because of the imported wrong data (please, see images). I'm sorry I didn't realize that before.

So I think it's clearly an issue on the importation routine (a bug in the code or a limitation with old dates in some system, methods or variables, as you pointed too).

I can edit all this wrong dates one by one, but I guess I'll lose the changes when I'd need to synchronize the calendar...


Jordi
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh ok, can you please send me a copy of the ical export link from google and I'll test that as part of an import?

tony at jevents . net

Please.

Many thanks
Tony
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
You already got it!

Thanks
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Can you confirm you are receiving my e-mails at the inbox you told me?
- 30/1/2020 at 22:13
- 10/2/2020 at 13:06.

Thank you
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post