Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 10:37 am EST

Geeklog Forums

Get rid of timestamp


Status: offline

frasier

Forum User
Newbie
Registered: 08/18/05
Posts: 10
confused
If I add an event to the calendar and it spans more than one day, when you click on the event to view it the time stamp is there (this is normal).

Example:

When: Monday, September 12 2005 @ 12:00 AM EDT - Tuesday, September 20 2005 @ 12:00 AM EDT

I would like to completely remove the time stamp as I don't need it at all. I woiuld like to only see the dates. Would this be a simple thing to do or require lots of code manipulation?

Thank you,
Lisa
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Wouldn't checking "All Day" help?

bye, Dirk
 Quote

Status: offline

frasier

Forum User
Newbie
Registered: 08/18/05
Posts: 10
Yes, it does if the event is for only one day. But if you span more than one day and click on any day of the event in the calendar view, it displays the date and time from the beginning date to the end date. I like that it shows the beginning and ending date I just don't need the time displayed. If a user doesn't input the times when entering the event there is a default which is the current time when the event was entered.
Most of our events are not time related.
If you could select that every day of a multiple day event show "all day" then that would work also. Any thing to get the times not displayed.

Thanks, Dirk
Lisa
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by frasier: Yes, it does if the event is for only one day. But if you span more than one day and click on any day of the event in the calendar view, it displays the date and time from the beginning date to the end date.

I see what you mean. I would actually consider this a bug then. Submit a bug report.

bye, Dirk
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
This date format makes use of Geeklog's date format, which is defined in your user preferences, otherwise it will use the system default.

perhaps there is an optional format there that you would prefer, or I'm sure you could create your prefered format and insert it into gl_dateformats.
 Quote

Status: offline

frasier

Forum User
Newbie
Registered: 08/18/05
Posts: 10
Wow, I didn't even think to look in user prefs. However, all of the selections have the time in some fashion so none of those will work.
Machinari, I'm going to try your advice and create my own dateformat selection (without the time of course!). Could you be kind enough to point me to which file holds the current selections. I don't fully understand where the selections are created for the dateformat dropdown. I know this function is called {dateformat_selector} but I'm not sure where to start looking for the actual dropdown choices.

Thank you very much,
Lisa
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
the possibilities are stored in your database--in the table named gl_dateformats. The list of options is created using the rows found in that table. If you simply insert another row containing your prefered format according to the table's present structure then all should be well.

for example:
Text Formatted Code

INSERT INTO gl_dateformats (dfid, format, description) VALUES (19,'%a %B %d','Sun March 21')


 


keep in mind that this format will be used on your site whereever the date is displayed, not just in your calendar.
 Quote

Status: offline

frasier

Forum User
Newbie
Registered: 08/18/05
Posts: 10
Fantastic!! Thanks, Machinari I inserted a row into the database with your suggestions and it worked great. I then deleted all the other choices for date format. So now my users are stuck with only one "choice" for dateformat.
One curious thing though. If you select "all day" when adding an event, the date format is different. I'm not sure where thats coming from, but I can live with it. At least the time is gone.

Lisa
 Quote

All times are EST. The time is now 10:37 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content