I was surprised. All the buffered dates show up correctly. I guess the "[UTC]" designation in the format fixes the offset internally.
-- Mark On Wednesday, March 20, 2019 at 4:02:01 PM UTC-7, TonyM wrote: > > Mark, > > The important bit is to set the *title* to the variable. >> > > Yes, as I said this opens many possibilities. As part of my comprehensive > review of dates, I used this hack to produce examples of building a date > from fields/variables and state tiddlers. > > This should satisfy the Original post, however I am clarifying the > standards to use for reliable dates. The below examples can be further > generalised so one could optionally pass the contents of the wikify text > field as well. > > \define new-date(format:"[UTC]YYYY0MM0DD000000000") > <$wikify name="date" text="{{!!yyyy}}{{!!mm}}{{!!dd}}0000000" > > <$view tiddler=<<date>> field="title" format="date" template="$format$"/> > <$wikify> > \end > \define new-date-vars(format:"[UTC]YYYY0MM0DD000000000") > <$wikify name="date" text="<<year>><<month>><<day>>0000000" > > <$view tiddler=<<date>> field="title" format="date" template="$format$"/> > <$wikify> > \end > \define new-date-state(format:"[UTC]YYYY0MM0DD000000000") > <$wikify name="date" text="{{year}}{{month}}{{day}}0000000" > > <$view tiddler=<<date>> field="title" format="date" template="$format$"/> > <$wikify> > \end > > > ;Constructed date > :Default serial <<new-date>> > :Selected format <<new-date format:"[UTC] DDD DDth MMM YYYY">> > ;Time > :<<new-date format:"0hh:0mm">> Shows your time offset because input time > is 00:00 ? > :<<new-date format:"[UTC]0hh:0mm">> Assumes date is a UTC time > > > ;Constructed date from variables > <$vars > year=2013 > month=12 > day=15 > > > > :Default serial <<new-date-vars>> > :Selected format <<new-date-vars format:"[UTC] DDD DDth MMM YYYY">> > > </$vars> > > ;Constructed date from "state tiddlers" > ::Default serial <<new-date-state>> > :Selected format <<new-date-state format:"[UTC] DDD DDth MMM YYYY">> > > If you use the state tiddlers create a year month and day tiddler. > > *If someone is in a negative time zone please test, what is the time > offset ?* > > Regards > Tony > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@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/bea25a9d-4acb-430b-b125-e569e767ff96%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.