Help Desk Software & Beyond
May 22, 2012, 01:14:26 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [INFO] Questions about date/time format  (Read 1447 times)
TroubleTicketUser4499
Jr. Member
**

Karma: 5
Posts: 59


View Profile
« on: May 22, 2008, 10:28:23 AM »

Thank you.

Yes, I'll have to check; I downloaded ttxmerge and ttxcustdesk (not sure if they're active or not, for I believe the appropriate lines are commented out), so I'll start there.  I'm trying to fix these weird issues one a time, here.  The one issue that I'm currently dealing with, as I just noticed it yesterday, is the date and time is not displaying properly.  No, to my recollection, I made no changes to the date and time, whatsoever.  I never had issues with the date and time, before I started installing these ttx modules from this forum. 

When I create a new ticket and receive an e-mail, I click the link and the claim page displays.  So far, so good.  But Date and Created show only the time!  Then, and this is weird, the next day, I notice this same ticket is now displaying the date and time.  I didn't change anything.  It's almost like it's on a timer or something with the date.  Why would it only show the time one day and the full date and time the following day?  Very strange. 

Update:  I opened the TTXCommon module and took a look at the tmtxt subroutine, which is what TTXTicket.pm is uinsg to formulate the date, i.e. TTXCommon::tmtxt($header{DATE}).  I commented out the "elsif ($mon != $mon1 || $mday != $mday1)" and substituted "else" and saved.  All of a sudden, the date and time are showing up correctly.  I put it back the way it was, the date disappears, leaving just the time.  Really strange.  Actually, I shoudln't say it shows up correctly -- the month, day, and time are displayed, not the year.
« Last Edit: May 22, 2008, 10:44:58 AM by TroubleTicketUser4499 » Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #1 on: May 22, 2008, 10:45:19 AM »

Thank you.

Yes, I'll have to check; I downloaded ttxmerge and ttxcustdesk (not sure if they're active or not, for I believe the appropriate lines are commented out), so I'll start there. 

Firstly, I would suggest getting one modification fully installed and working properly before starting on another one.

Secondly, is this your production version or something you're just playing with?  I always have several other installations of TTX running on my server for testing purposes.


I'm trying to fix these weird issues one a time, here.  The one issue that I'm currently dealing with, as I just noticed it yesterday, is the date and time is not displaying properly.  No, to my recollection, I made no changes to the date and time, whatsoever.  I never had issues with the date and time, before I started installing these ttx modules from this forum. 

When I create a new ticket and receive an e-mail, I click the link and the claim page displays.  So far, so good.  But Date and Created show only the time!  Then, and this is weird, the next day, I notice this same ticket is now displaying the date and time.  I didn't change anything.  It's almost like it's on a timer or something with the date.  Why would it only show the time one day and the full date and time the following day?  Very strange. 

Perfectly normal.  Wink   When it's today, it just shows the time.  When it's not today, it shows the time & date.

(might I suggest you visit the TTX Demo Site whenever you need to see if something is behaving normally)



There are several modifications and variations you can try.

1.  European time format.
2.  Full date format.
3.  Add the day of week.

http://forum.unitedwebcoders.com/index.php/topic,678.0.html

4.  My Mod to add the word "today".
5.  My Mod to toggle 12 & 24 hour time with AM/PM.
6.  And many combinations of these.

Search the forum for date & time issues... there must be a dozen threads on the issue.
« Last Edit: May 22, 2008, 11:17:08 AM by sparky672 » Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #2 on: May 22, 2008, 02:02:13 PM »

Update:  I opened the TTXCommon module and took a look at the tmtxt subroutine, which is what TTXTicket.pm is uinsg to formulate the date, i.e. TTXCommon::tmtxt($header{DATE}).  I commented out the "elsif ($mon != $mon1 || $mday != $mday1)" and substituted "else" and saved.  All of a sudden, the date and time are showing up correctly.  I put it back the way it was, the date disappears, leaving just the time.  Really strange.  Actually, I shoudln't say it shows up correctly -- the month, day, and time are displayed, not the year.

No, not strange... everything is operating exactly as Alex programmed.

TTX only displays the date for anything NOT today.
TTX only displays the year for anything NOT this year.


1.  Refer to the TTX Demo to see how it was designed to operate.
2.  Refer to my previous post in this thread for how to make the date appear any way you wish.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 19 queries.