Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Due to public holidays and vacations, longer response times can be expected for inquiries in the forum between December 20, 2024 and Janaury 8, 2025.

Time Stamp column it is capturing UTC time

More
10 years 7 months ago #550 by Administrator AV
Time Stamp column it is capturing UTC time was created by Administrator AV
Thanks to an email of a visforms user I just realized, that the column "Date" in Visforms data view and the "Registered at" text in result an user email use php date function and not Joomla! framework functions.

As a result they seem to always use UTC time even when the local is set differently.

At the moment you have to change a bit of code to fix it.

go to components/com_visforms/models/visforms.php and find
Code:
function saveData() {

at about line 600

Replace it with
Code:
function saveData() { date_default_timezone_set("Asia/Kolkata");
You have of course to replace "Asia/Kolkata" with name of your timezone.

Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
10 years 7 months ago #551 by parashuram
Replied by parashuram on topic Time Stamp column it is capturing UTC time
Hello Aicha

Thank you very much, I would like to share with you that I surprised when I got the reply to my query, I cant't believed I will get the solution.

I followed your instructions and got the solution, now it is capturing exact time (Asia/Kolkata)

Thanks a lot. However I would like to show this TimeDate column in Display Data Page. Will you please send the solution for this?

Awaiting your response.

With thanks
Parashuram Singade

More
10 years 7 months ago - 10 years 7 months ago #552 by Administrator AV
Replied by Administrator AV on topic Time Stamp column it is capturing UTC time
Hi parashuram,

this is much more complex, because showing the date in frontend data view is not yet a feature in visforms. For visforms works multi language and with many features even in the data view, making a complete instruction for you is just as much work as to implement the feature itself. Therefore I can only give you a guide which you might be able to follow if you have some knowledge of HTML. But you have to implement and test for yourself.

The file you are looking for is
components/com_visforms/visformsdata/tmpl/data.php

Make a copy of it first as backup.

This file build the HTML of the data view.
There is a HTML table element with th elements. The existing th elements contain some php code (multi language text, sort function...) but basically you just have add a new th-Element inside the tr-element in the table header, with the text you want as table header. (i.e. Date). Make it the last th element just before the closing tr element.

Next you have to add the date itself in the table body.
Find the closing table element. Find the closing tr element which is some lines above the closing table element. Add a new td element immediately before that closing tr element. (After "<?php } ?>")
As content in that td element use the following code
Code:
<?php echo $row->created; ?>
I hope you can make it work.

Kind Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).
Last edit: 10 years 7 months ago by Administrator AV.

More
10 years 7 months ago #553 by parashuram
Replied by parashuram on topic Time Stamp column it is capturing UTC time
Hello Aicha

I configured it and I got what I want. Thanks a lot for your grate support.

Parashuram

More
10 years 7 months ago #554 by Administrator AV
Replied by Administrator AV on topic Time Stamp column it is capturing UTC time
Hi Parashuram,

you're wellcome!

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum