Giacecco
unread,Jul 31, 2010, 11:23:14 AM7/31/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to appenginejs
See this model definition:
var TwitterMonitor = export.TwitterMonitor =
db.Model.extend("TwitterMonitor", {
fromDate: new db.DateTimeProperty(),
toDate : new db.DateTimeProperty()
});
I have noticed that if I pass {autoNowAdd: true} as a parameter to the
db.DateTimeProperty fields, I will not be able to change their value
later.
E.g.
var fromDate = new Date(), toDate = new Date();
fromDate.addDays(-3);
toDate.addDays(3);
twitterMonitor = new TwitterMonitor({
fromDate: fromDate,
toDate : toDate
});
twitterMonitor.put();
... and what I find in both fromDate and toDate is the "now" at the
moment of execution.
G.