I just noticed something strange while playing around with datepicker from here http://kixam.github.io/TW5-datePicker/If i write <$edit-date> into a new tiddler and then let the view render, and pick a date, it picks up the date and then right before my eyes skips back by one day! So if i pick 12th of jan it becomes 11th of january. Can anybody confirm this to be happening or I am in need of sleep?
[UTC]
Time-shift the represented date to UTC. Must be at very start of format string
Can't be sure if you need more sleep, but I cannot reproduce what you describe I'm afraid.
[UTC]
Time-shift the represented date to UTC. Must be at very start of format string Hi Tony,
I had the same phenomen of skipping back a day. It disappeared
after I reinstalled the datepicker plugin. This worked with
several TWs, both file and node.
Why? No clue. Gandalf? Dumbledore? Does software have selfhealing
capabilities?
I do not use hours, just dates. If I test it with hours, I have a gap of 1 hr ( I am Greenwich +1). This is a phenomen which has been mentioned before and is known.
I would be interested to learn how you add or substract dates.
Pit.W
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4f348c78-c0cc-4e09-9a7d-3dc80d6a3599%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
_________________________________________________________________ ________________________________________________________ Ihre E-Mail-Postfächer sicher & zentral an einem Ort. Jetzt wechseln und alte E-Mail-Adresse mitnehmen! https://www.eclipso.de
(function(){
"use strict";
exports.name = "myViewDate";
exports.params = [
{name: "dateValue"}
];
exports.run = function(dateValue) {
//20180112060000000
var yr= dateValue.slice(0,4);
var mnth= dateValue.slice(4,6);
var mnthstr="";
var day= dateValue.slice(6,8);
switch (mnth) {
case "01":
mnthstr = "January";
break;
case "02":
mnthstr= "February";
break;
case "03":
mnthstr= "March";
break;
case "04":
mnthstr= "April";
break;
case "05":
mnthstr= "May";
break;
case "06":
mnthstr= "June";
break;
case "07":
mnthstr= "July";
break;
case "08":
mnthstr= "August";
break;
case "09":
mnthstr= "September";
break;
case "10":
mnthstr= "October";
break;
case "11":
mnthstr= "November";
break;
case "12":
mnthstr= "December";
break;
}
return day+" "+mnthstr+" "+yr;
};
})();