Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2013-08-23

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:32 mgage joined #webwork
02:51 mgage joined #webwork
03:17 mgage joined #webwork
13:15 goehle joined #webwork
13:16 mgage joined #webwork
14:24 goehle hey mgage
14:24 mgage hi
14:24 goehle did you see the bug about time zones and timedatepicker
14:25 mgage I saw the comment yet.
14:25 mgage yes
14:25 mgage haven't looked at it yet
14:25 goehle i took a bit of a look at it yesterday
14:26 goehle time date picker does do timezones
14:26 goehle but it uses a different format
14:26 goehle (I guess EST EDT etc... are not particularly standard)
14:26 mgage no -- they are often not specific enough
14:27 goehle I was thinking there might be a couple of ways to approach this
14:27 goehle the first (and I think this was the original intention, but it never got implemented)
14:28 goehle is just to get the timezone abbreviation from the original date
14:28 goehle and tack it on to the end of the datetimepicker output
14:28 goehle and then let webwork deal with it
14:28 mgage as I recall that was the method that Grant He used  when he wrote the first version.
14:29 goehle thats what it looks like, although the technique he used was fragile and at some point EDT was just hard coded in there
14:29 goehle (which I never noticed because I live in NC :P )
14:30 goehle the second approach would be to change how webwork does timezones to Iso 8601 format (+04:45)
14:30 goehle then it would integrate nicely with datetimepicker
14:30 goehle but would be a lot less intuitive for US users
14:37 goehle whats going on in that email?
14:39 mgage extension
14:39 mgage sorry -- auto spell took over
14:39 goehle np.
14:40 mgage when you change one the dates -- such as the due date to be after the answer date you get situations where the date shifts but the time disappears
14:40 goehle ah,  I ran across that a while back
14:40 goehle what version is that server running?
14:40 mgage it's an artifact of the jquery date picker extension and I'm not sure how to fix it.
14:41 goehle https://github.com/goehle/webwork2/blob/devupdates/lib/WeBWorK/Utils/DatePickerScripts.pm
14:41 goehle check line 68
14:41 goehle I think we may be talking about the same things there
14:42 mgage yes -- that's it --
14:42 goehle ok
14:43 goehle I just changed it so that it doesnt use the minDate feature (which wasn't respecting the time)
14:43 mgage and it's quite possible that I took out a hack that Grant had to work around this.
14:43 mgage ok
14:43 goehle now when you change the date it doesn't try to update the other fields until after you hit done
14:44 mgage that sounds fine -- does it still update after you hit done?  can it give you some clear warning (red coloring for example) if the dates are inconsistent?
14:44 mgage i put yellow colors in to alert you to the fact that the dates had been changed
14:44 mgage one or more of the dates had been changed -- originally I tried to color only the actual change.
14:45 mgage but I couldn't get it to work properly
14:45 goehle I don't see any coloring
14:45 goehle but the dates do update once you hit done
14:45 goehle and it will change due date/ answer date to make sure that everything is chrologically correct
14:47 mgage sounds good.  -- there was coloring at some point but I don't have time to check it right now.
14:47 goehle if I find time to take a look at this stuff
14:47 goehle 1) do you want me to deal with datetimepicker or reset problems first?
14:48 goehle 2) if I go with datetimepicker should I try to get the original approach working again (with the three letter codes)
14:48 goehle or should I move to a different timezone format?
14:48 mgage I think the date time picker is simpler
14:49 mgage I think the numerical format is too annoying and we should avoid it if we can -- you have to be careful with the three letter times because they
14:50 mgage are not unique or precise enough -- look at the perl (and other language) DateTime modules for ideas -- dates and times and time zones get really complicated and we want to stay with something that works with the perl DateTime module
14:51 goehle ok.  Then what I'll do is have the date time picker just set the date and time with the timezone code tacked on to the end
14:51 mgage the usual approach is to use something like America/New_York   but then allow certain three letter abbreviations
14:51 mgage yes
14:51 goehle then the time zone code can be processed as usual by webwork and there wont be any changes in behavior
14:52 mgage I think that is best -- but if you see something that seems better I'm willing to think about that as well.  I'm sure I haven't considered all possibilities.
14:53 goehle sounds good.  I'll poke around and see if I cant get it working.  As it stands this makes the datetimepicker stuff unusable.   So I'll make it functional as elegantly as I can and if there is some better solution we can leave that for the future.
14:55 mgage kk -- guess I didn't notice that it was unusable -- just annoying -- is it because there is hard coded EDT references?
14:55 goehle exactly
14:55 goehle right now the datetimepicker *always* puts EDT at the end
14:56 goehle I didn't notice either
14:56 mgage if it's really unusable then perhaps you can create a minimal fix off the master (2.7 ) branch and submit it as a hot fix to master.
14:57 goehle thats probably a good idea
14:57 mgage then we can decide later whether to put the real fix on the master branch or just save it for release/2.8 -- which I'd like to get out in a month or so anyway
14:58 mgage it's ok if the hot fix merely makes the feature usable, but still with annoying quirks.
14:59 goehle :D  I'll take a look at it later today then.  right now I've got to head off to class though.
15:01 mgage ty  have a good class.  ours don't start until after labor day but I've got to get busy with preparing that stuff also.
16:35 mgage joined #webwork
16:42 goehle hey mgage
16:42 goehle I'm having trouble switching over to the master branch
17:21 mgage joined #webwork
17:21 mgage left #webwork
22:02 goehle left #webwork

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary