• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Remove Seconds from Event Time

Remove Seconds from Event Time 12 years 4 months ago #20305

When you create a new event on the backend or frontend the TIME FORMAT is HOURS:MINUTES:SECONDS, for example 06:30:00.

How do you remove the seconds from that preformatted time? It is very confusing to a frontend that they would have to enter the seconds when their event is going to start. It would never be used.

Thank you for your time.
The administrator has disabled public write access.

Remove Seconds from Event Time 12 years 4 months ago #20553

Hi.

Please edit two files.

#1. in \administrator\components\com_rseventspro\views\events\tmpl
edit.php file
near line:228

#2. in \components\com_rseventspro\views\events\tmpl
edit.php file
near line:208

Before:
var regex=/^([0-9]{2,4})-([0-1][0-9])-([0-3][0-9]) (?:([0-2][0-9]):([0-5][0-9]):([0-5][0-9]))?$/;

After:
var regex=/^([0-9]{2,4})-([0-1][0-9])-([0-3][0-9]) (?:([0-2][0-9]):([0-5][0-9]))?$/;

you must delete last
:([0-5][0-9])
.
Please challenge! :laugh:

regards!
The administrator has disabled public write access.

Remove Seconds from Event Time 12 years 1 month ago #21831

Ehh, you really shouldn't edit the core files of the component. One flip of the update button wipes all of that out. Is there no way to do an override for this?
The administrator has disabled public write access.

Remove Seconds from Event Time 12 years 1 month ago #21858

  • octavian
  • octavian's Avatar
  • NOW ONLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Yes, you could use template overrides to do this. Basically copy the following:
1) administrator/components/com_rseventspro/views/events/tmpl/edit.php
to
administrator/templates/<YOUR_BACK_TEMPLATE>/html/com_rseventspro/events/edit.php
2) components/com_rseventspro/views/events/tmpl/edit.php
to
templates/<YOUR_FRONT_TEMPLATE>/html/com_rseventspro/events/edit.php

This is all explained here.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Remove Seconds from Event Time 12 years 1 month ago #21864

  • mikrofon
  • mikrofon's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
this gets you pointed at the right files to change (and how to copy/paste them from their native directory to a safe template-override directory - IMPORTANT):
www.rsjoomla.com/support/documentation/v...s-look-and-feel.html

I made some similar changes. Here is an example of what I did:
inside show.php (see link above for a description of it), I found:
rseventsproHelper::date($event->start,null,true) ... the null means that the default date format is used
and changed it to:
rseventsproHelper::date($event->start,"F d, H:i",true) ... which means "month day, hour minute".
Last Edit: 12 years 1 month ago by mikrofon.
The administrator has disabled public write access.

Remove Seconds from Event Time 12 years 1 month ago #21868

  • opp
  • opp's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi I'm new here but I managed to get rid of the seconds by choosing the format g:i a in Settings - Date & Time ( which will display the time as 1.23pm as opposed to 1.23.05.

Hope that helps for people who do not want to mess with coding.
The administrator has disabled public write access.

Remove Seconds from Event Time 12 years 1 month ago #21894

  • jonfi
  • jonfi's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Gooday,

Thanks for your tips.

We would like to remove the time, hour and minutes. How can we do?.

We have removed: H:i:s from show.php and default.php but there is no change.

Regards.
The administrator has disabled public write access.

Remove Seconds from Event Time 11 years 6 months ago #25109

  • info4497
  • info4497's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
@shigeto_y0

I tried this, but it didnot work :(

Seconds are still visible.
The administrator has disabled public write access.

Remove Seconds from Event Time 11 years 6 months ago #25110

  • info4497
  • info4497's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi,

You advised to copy:
1) administrator/components/com_rseventspro/views/EVENTS/tmpl/edit.php
to
administrator/templates/<YOUR_BACK_TEMPLATE>/html/com_rseventspro/events/edit.php

But I don't have the file edit.php in administrator/components/com_rseventspro/views/events/tmpl/

In administrator/components/com_rseventspro/views/EVENT/tmpl I found the file edit.php

Should I copy this edit.php file from the EVENT-directory?

Meindert

PS: It should be much easier to remove the seconds in the settings.
BTW, does anyone use seconds in event start and end times?
The administrator has disabled public write access.

Remove Seconds from Event Time 11 years 6 months ago #25114

  • octavian
  • octavian's Avatar
  • NOW ONLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Please submit a ticket so one of my colleagues from Customer Support can guide you.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!