days are now calculated according to specified site-timezone by using global formatTimestamp()
This commit is contained in:
parent
f1b713b344
commit
44369d2c33
2 changed files with 6 additions and 3 deletions
|
@ -45,8 +45,10 @@ function evalNewStory(s,param,creator) {
|
|||
}
|
||||
s.editableby = !isNaN(parseInt(param.editableby)) ? parseInt(param.editableby,10) : null;
|
||||
s.discussions = (param.discussions_array || param.discussions == null ? 1 : 0);
|
||||
if (s.createtime)
|
||||
s.day = s.createtime.format("yyyyMMdd");
|
||||
if (s.createtime) {
|
||||
// create day of story with respect to site-timezone
|
||||
s.day = formatTimestamp(s.createtime,"yyyyMMdd");
|
||||
}
|
||||
s.ipaddress = param.http_remotehost;
|
||||
s.reads = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue