mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing long dates.
This commit is contained in:
parent
b992cd7abe
commit
f24e61a608
1 changed files with 5 additions and 1 deletions
|
@ -107,8 +107,12 @@ NEWSBLUR.Models.Story = Backbone.Model.extend({
|
|||
midnight.setSeconds(0);
|
||||
return midnight;
|
||||
};
|
||||
var midnight_tomorrow = function(midnight, days) {
|
||||
if (!days) days = 1;
|
||||
return new Date(midnight + days*60*60*24*1000);
|
||||
};
|
||||
var midnight_yesterday = function(midnight) {
|
||||
return new Date(midnight - 60*60*24*1000);
|
||||
return midnight_tomorrow(midnight, -1);
|
||||
};
|
||||
var beginning_of_month = function() {
|
||||
var month = new Date();
|
||||
|
|
Loading…
Add table
Reference in a new issue