1
0
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:
Giulio Cesare Solaroli
2014-10-09 13:55:45 +02:00
parent 093d5e7965
commit b3967dae52
30 changed files with 784 additions and 190 deletions

View File

@@ -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': {