Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8016 Posts in 1849 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityEverything ElseGeneral Use (Moderators: scott, DanO, Marty)Date of 1/1/1970 on approval screen
Pages: [1]   Go Down
Print
Author Topic: Date of 1/1/1970 on approval screen  (Read 194 times)
0 Members and 1 Guest are viewing this topic.
Jason S
New Member
*

Karma: 0
Offline Offline

Posts: 3


WWW
« on: April 25, 2005, 10:08:00 AM »

I know I have seen this come up over the years, but I can't seen to find the fix for it.  What is happening is that on some dates the approval screen shows a start date of 1/1/1970.  If I change the date it shows up fine, but when I change it back to the original date it shows up as 1/1/1970 again.  Can someone let me know where the fix is or how to do it.

Thanks

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 217

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: April 25, 2005, 12:40:00 PM »

Unix stores dates as the number of seconds since 1/1/1970. Any calculations done with a blank date with return 1/1/1970.

I have no idea why it is printing that out on the screen when no start date is specified. You'd probably have to make some sort of conditional to negate its printing if you didn't want it displayed on such occasions.

JFYI

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: