mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2025-12-17 11:57:02 +01:00
Fixes to release developer preview of the /delta version
/delta needs an updated backend to support its payment options. /beta and /gamma have been updated to be compatible with the new backend.
This commit is contained in:
@@ -283,6 +283,13 @@ MochiKit.Base.update(Clipperz.Date, {
|
||||
return new Date(Date.parse(aValue));
|
||||
},
|
||||
|
||||
'daysBetweendDates': function (date1, date2) {
|
||||
var ONE_DAY = 24 * 60 * 60 * 1000;
|
||||
return Math.round(Math.abs(date1.getTime() - date2.getTime()) / ONE_DAY)
|
||||
},
|
||||
|
||||
'distantFuture': 'Mon, 01 January 4001 00:00:00 UTC',
|
||||
'distantPast': 'Tue, 04 January 0001 00:00:00 UTC',
|
||||
//=========================================================================
|
||||
|
||||
'exception': {
|
||||
|
||||
Reference in New Issue
Block a user