Commit graph

48 commits

Author SHA1 Message Date
JT Smith
1b32ab4846 rfe: Extend DateTime for Week-Nrs (#9151) 2009-04-16 17:06:50 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Colin Kuskie
81c9d117e5 Fixed a bug where the Interval Form would not work well with non-English languages.
Fixed display of the Interval Form field in Thingy and User Profile by adding a getValueAsHtml method.
2008-12-29 16:54:47 +00:00
Graham Knop
8fb275850c small speed improvements to WebGUI::Session::DateTime 2008-11-24 04:00:38 +00:00
Colin Kuskie
47419b9602 fixing date duration i18n 2008-11-14 23:54:15 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
JT Smith
fa09c41598 replaced return; with return undef; 2008-01-24 21:58:15 +00:00
Colin Kuskie
96178fd70c first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead 2007-12-05 00:30:43 +00:00
Graham Knop
fff821d6e5 fix monthStartEnd function 2007-09-07 14:20:55 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
James Tolley
c09b2cae1b EMS import/export, Form::*::getValueFromPost(alt_values), and tests 2007-05-29 23:39:24 +00:00
Colin Kuskie
76bf1b2ad5 testing for DateTime methods for interval translation and date math. Reformatted some of Session/DateTime for WGBP 2007-04-10 04:51:48 +00:00
Colin Kuskie
4cc810faf3 Added tests for mailToEpoch.
Removed the default setting for mailToEpoch that would have assigned
the epoch to the mail field and automatically caused the method
to fail, returning undef.
2007-04-09 18:01:26 +00:00
Colin Kuskie
1a615f8ad8 replaced a literal loop with isIn, WGBP indented 1 line of Group.pm 2007-04-08 05:07:26 +00:00
Nik Ogura
b4bc36d23d added custom handling to the %D format to remove initial space in single space days. 2007-04-01 00:38:48 +00:00
JT Smith
172985e2a0 - fix: 7.4 Editing SQL Form seems to break site ...? 2007-03-09 05:38:44 +00:00
Drake
e3350f05ef Couple of minor code cleanups in WebGUI::Session::DateTime. 2006-11-13 23:20:55 +00:00
Drake
1ad3f6e3b3 Make DBI connect errors not infinitely recurse. 2006-09-21 00:25:01 +00:00
Colin Kuskie
b3678c6795 fix bad minute spec in Session/DateTime/epochToHttp. Add tests to cover 2006-08-09 20:06:19 +00:00
Roy Johnson
c93d6ba4d2 fix: ?op=listTransactions causes fatal
Session/DateTime addToTime, addToDate, and addToDateTime now default to the current epoch as a starting point.
2006-06-14 16:23:20 +00:00
Wouter van Oijen
9a087b0ac8 Cleaning up and bugfixing DateTime.pm 2006-06-02 08:25:06 +00:00
Matthew Wilson
4078d4d417 validating (and caching) timezone. 2006-05-19 02:07:52 +00:00
JT Smith
61050f1aed fix [ 1489528 ] HTTP header contains invalid time-stamp 2006-05-18 00:09:20 +00:00
Wouter van Oijen
559241d62a Removed incrementMonth (not needed) and added getMonthDiff 2006-05-11 15:10:47 +00:00
Wouter van Oijen
3138f403d5 - Fixed a number of bugs in DateTime.pm
- Cleaned up code (fixed typo's, removed debug code)
- Added incrementMonth subroutine (with POD)
2006-05-11 10:36:24 +00:00
Frank Dillon
8dae97b372 Fixed bug in setToEpoch which would throw an error instead of returning gracefully if date format was wrong. It now returns today's date in this case 2006-05-07 20:30:15 +00:00
Frank Dillon
ef071382fc Added some methods. Added timezone to a few methods to fix date reporting issues. 2006-05-05 14:34:26 +00:00
Wouter van Oijen
be219b7654 Fixed timezone problem in dayStartEnd routine
Fixed documentation
2006-05-04 11:05:10 +00:00
Frank Dillon
4630352d9d added addToDateTime method which combines addToDate and addToTime into one method saving clock cycles for dates which need both day and time added. 2006-05-01 21:46:57 +00:00
Frank Dillon
92626f43af Added getDayOfWeek function which returns the numeric day of the week (1=Monday, 2=Tuesday, etc) 2006-05-01 21:17:53 +00:00
Frank Dillon
33c742487d Fixed error with monthStartEnd where timezone was not being set prior to getting the start and end of the month. 2006-05-01 20:15:40 +00:00
Frank Dillon
35689596f5 Added monthCount method to Synopsis. 2006-05-01 16:50:07 +00:00
Frank Dillon
0080a55bf8 Removed getMonthsInInterval method as it already exists with the name of monthCount 2006-05-01 16:47:37 +00:00
Frank Dillon
09bece8f8e Added getMonthsInInterval method analogous to getDaysInInterval method 2006-05-01 16:42:06 +00:00
JT Smith
1533a1c648 whoops! this should unbugger the http headers 2006-04-18 23:19:18 +00:00
JT Smith
2b02f055f9 added new mail retrieval subsystemm 2006-04-09 15:14:07 +00:00
JT Smith
7731a32559 fixed some pod errors
removed futile inbox attempt
2006-01-31 23:10:10 +00:00
Matthew Wilson
4a3121960f removal of dumpSession. 2006-01-26 05:39:16 +00:00
Matthew Wilson
3d740cdfac oodles of fixes. 2006-01-21 02:01:15 +00:00
Colin Kuskie
1ad601c8d9 - bitwise OR vs short circuiting OR in epochToHuman
- time zone in humanToEpoch
- time zone in getSecondsFromEpoch
- monthStartEnd, returned start month was not the 1st day of the month
2006-01-17 04:23:32 +00:00
Matthew Wilson
09483e18c5 a ton of $session fixes (thanks to Colin), and a new $session checker, that supposedly, shouldn't be needed now. It can be backed out, however, easily. 2006-01-16 22:45:21 +00:00
Colin Kuskie
edfaa153b9 end of test program sweeps for dictionary lookups via subroutine instead
of object method.
2006-01-15 02:34:50 +00:00
JT Smith
07c7cf6098 more bug fixes 2006-01-14 23:31:49 +00:00
Matthew Wilson
3c66a9105f lots of DESTROYs 2006-01-14 22:26:48 +00:00
Colin Kuskie
c76c1bded7 flip sense of object detection in datetime so that it creates and caches object.
make DateTime::time return time(), like it used to.
2006-01-14 19:25:20 +00:00
Colin Kuskie
84e20a1a96 Session/Http, rework getCookies logic so that empty hash is returned if there's no
request object.  That way a sessionId gets created back in Session::Var::start.

Session.pm: pass Session::DateTime->new a session object instead of self

Session/DateTime.pm:  Added a space.  Note that this is infinite recursion since
it calls itself.
2006-01-14 18:58:30 +00:00
JT Smith
ee5ccfad26 more bug fixes 2006-01-13 21:47:38 +00:00
JT Smith
9520b4ce48 migrating datetime api for session 2006-01-10 17:06:41 +00:00
Renamed from lib/WebGUI/DateTime.pm (Browse further)