/srv/irclogs.ubuntu.com/2010/11/19/#ubuntu-locoteams.txt

cjohnstonDaniels @require_login00:03
mhall119rebase00:08
cjohnstonalready done00:08
mhall119sorry, I got distracted, someone way yacking at me in PM00:08
cjohnstonnp.. i know what to do now.. youve tought me well00:09
cjohnstonmhall119: would                             team.expires_date = datetime.strptime(approval.date_expires[:19], "%Y-%m-%dT%H:%M:%S") have anything to do with bug 49495001:00
ubot4Launchpad bug 494950 in loco-directory "Team Approved/Expire dates don't require time. (affects: 1) (heat: 3)" [Medium,Confirmed] https://launchpad.net/bugs/49495001:00
mhall119could be01:13
cjohnstonmhall119: does the strptime take out the HMS?01:45
cjohnstonor is it supposed to01:45
mhall119I'm not sure02:05
mhall119cjohnston: still awake?04:28
mhall119cjohnston: progress so far: https://code.launchpad.net/~mhall119/loco-directory/team-events-localtime04:29
mhall119it'll get the timezone from the venue if there is one, otherwise it defaults to UTC04:31
mhall119on display it'll include the timezone and offset04:32
mhall119on editing it'll assume you're entering time local to the venue, and convert it to UTC when it saves it do the database04:32
mhall119and with that, I'm off to bed, talk to you tomorrow04:34
YoBoYbonjour06:39
dholbachgood morning08:42
czajkowskialoha09:06
dholbachhey czajkowski09:11
czajkowskidholbach: ello happy friday to you09:14
dholbachand the same to you09:15
mhall119morning11:55
mhall119dholbach: https://code.launchpad.net/~mhall119/loco-directory/team-events-localtime <- progress11:55
dholbachmhall119, NICE11:57
dholbachlooks like it's been quite a bit of work already :)11:57
mhall119I need to track down all of the places that should display in localtime11:59
mhall119I went through several iterations last night trying to find a solution that would work11:59
dholbachyou'll make a lot of people very happy12:00
mhall119do you think we should give teams a default_timezone field?12:00
czajkowskihmmm12:01
czajkowskiwill it allow for DST ?12:01
mhall119I'm thinking that would be useful to most teams, so they don't have to specify for each venue12:01
dholbachbut they'll have to change it between summer and winter?12:01
mhall119czajkowski: yes, because I'm keeping timezone, not offset from UTC12:01
mhall119dholbach: nope12:01
mhall119right now, a venue is said to be in "US/Eastern"12:01
dholbachbut one British venue will be in BST in summer and in GMT in winter12:01
mhall119dholbach: nope12:02
mhall119they would be in the "Europe/London" timezone12:02
mhall119when I convert datetimes from UTC to localtime, that's when it calculates whether it's BST or GMT12:03
dholbachwe don't associate vnues with teams.... hm12:04
mhall119dholbach: no,true12:04
mhall119we already have tz field for userprofile, I guess I can default it to the tz of the user12:04
mhall119people will rarely be creating venues outside of their  own timezone12:05
dholbachhum12:05
dholbachmy concern is people travelling and changing timezones12:05
nigelband people using different timezones to work around bugs in the wiki :/12:06
nigelbmoinmoin to be exact.12:06
mhall119dholbach: how often will someone be creating venues when they travel?12:06
mhall119nigelb: do you use a different timezone in launchpad for that?12:06
nigelbmhall119: yep, or else I can't login to the wiki.12:07
mhall119dholbach: remember I'm just talking about defaults, they'll still be able to change it12:07
dholbachmhall119, do you want to make it a (overridable) preselection and get it from the browser?12:07
mhall119dholbach: you mean for the venue?12:07
mhall119or for userprofile?12:07
dholbachok, you answered question 112:08
dholbachdo you want to get the users timezone from the browser?12:08
mhall119right now the venue.tz field defaults to "Africa/Abidjan" in the form when the field is not set12:08
mhall119can we get it from the browser?12:09
mhall119it there a javascript trick or something for that?12:09
dholbachI thought there was talk about it12:09
dholbachdo you think it might make sense to bring the discussion on a wiki page?12:10
dholbachto me it seems like there's a lot of different problems/ideas/places involved12:10
dholbachso sometimes I'm not sure if we're talking about saving time in the current timezone of whoever creates the venue/event or displaying it for a user who might be in some other timezone somewhere12:11
mhall119dholbach: we can12:11
dholbachonly if you think it makes sense12:11
dholbachyou're putting all the work into it already12:11
mhall119I'd rather get these changes is now though, rather than wait on discussions about setting defaults12:11
dholbachsure12:12
mhall119I do have a question about migrating existing team event times12:30
mhall119right now they're stored in the DB at UTC, but we tell people to treat them a localtime12:31
mhall119initially, with my branch, venues say they are on UTC until a timezone is set, so it won't immediately break things12:32
dholbachmhall119, via management command we could convert them to something that makes sense as soon as a venue tz is set?12:32
mhall119but as teams set timezones for venues, it'll change the displayed time of any event using that venue12:32
mhall119hmm, I can add a hook to the venue's save method, so change times of any associated event when the venue's timezone is set for the first time12:33
dholbachit's tricky12:34
dholbachtricky tricky tricky12:34
mhall119how so?12:34
dholbachwhat do we do if somebody picks a wrong tz and wants to change afterwards?12:35
mhall119yeah, then they'll be stuck12:35
czajkowskiaye12:35
czajkowskiand trust me TZ is such a touchy subject with folks 12:35
mhall119we can do it every time venue.tz is changed12:36
dholbachbut how do we know what the value in front of us is? :)12:36
dholbach(the timestamp)12:36
mhall119it'll happen when the venue is saved12:36
mhall119we'll do a db lookup for any event using that venue12:36
mhall119check what the offsets from UTC were from both old and new timezone on the date of the event12:37
mhall119and adjust the time by the difference in offset12:37
dholbachso we have to have a "if venue.tz was empty before" check in there, right?12:38
mhall119the intent would be to keep the local time the same, even when venue's timezone is changed12:38
mhall119dholbach: now I'm thinking we just do it every time a venue.tz changes12:38
dholbachright12:38
mhall119to cover the "oops, I set it to the wrong timezone" scenario12:38
dholbachbut if it was empty before, we convert from "utc, but actually something else" to "utc + offset", no?12:39
mhall119right12:39
dholbachand if the tz is changed afterwards it's just the offset that's changed12:39
mhall119it'll change by the difference in offsets12:40
dholbachdifference between what?12:40
mhall119so if you change a venue's timezone from Europe/London at UTC+0 to US/Eastern at UTC-400, then we change the event's time by -40012:41
mhall119if you change from US/Eastern at UTC-400 to US/Pacific at UTC-700, we change the event's time by -30012:42
mhall119so that the local time display is always the same12:42
dholbachok12:43
mhall119does that make sense?12:43
dholbachI guess it does12:43
mhall119heh, I guess I'll try implementing it and see if it still makes sense in code12:44
dholbachit's just that datetime.datetime has a tzinfo field12:44
dholbachso I thought we'd just change the value there12:44
mhall119it's actually a class, and not implemented12:44
dholbachbut I'm not sure any more12:44
mhall119ok, that works13:04
mhall119so now people can set venue timezones at their leisure, and they won't have to worry about changing event times13:05
mhall119dholbach: cjohnston: When you can: https://code.launchpad.net/~mhall119/loco-directory/team-events-localtime/+merge/4130613:36
mhall119dholbach: can you check if python-tz is installed on the production server?13:38
dholbachmhall119, it is13:44
dholbachmhall119, but we probably should document it in INSTALL13:46
dholbachand spit out an error message maybe?13:46
mhall119working on it13:50
mhall119I don't think we need an error message, we don't do that for any of the other package dependencies13:54
mhall119but I added it to the INSTALL13:54
dscassel_Thanks, mhall119. :D14:29
mhall119dscassel_: for what?15:16
nigelbmhall119: Hi, sorry.  I got up waaay later I should have yesterday :)15:31
nigelbmhall119: Anyway, I wanted to try and hack something toegether for team reports over the weekend with the foundations project15:34
nigelbJust wanted to touch base with you re:that15:34
nigelbAlso, I was woundering if we could write a planet like app from scratch, I mean so we can re-theme it and it would be easier to set up feeds, etc15:35
dscassel_mhall119: For time zones. You have no idea the amount of grief I'm getting for trying to get people to use the LD without them.15:44
=== dscassel_ is now known as dscassel
=== kinoucho` is now known as kinouchou
mhall119nigelb: dholbach already has a teamreports project, are you aware of this?17:14
nigelbmhall119: I am :)17:15
mhall119dscassel: I can imagine, it's been a major thorn in our side for a long time17:15
nigelbI think nathan started it17:15
mhall119nigelb: cool, right now there's no guarantees that the code in my branch even has valid syntax17:15
mhall119and it's subject to some pretty major changes17:15
mhall119but if you're okay with that, I'd appreciate the testing and feedback17:16
nigelbI'd love to try for the sake of learning and/or helping test your code :)17:16
mhall119cool, let me know when you get started and I'll try to be around more to provide help17:17
nigelb\o/17:17
czajkowskiTEAM REPORTS 17:18
mhall119Florida didn't do anything in October, we just sat around17:34
jledbettermhall119, I don't believe you17:36
mhall119okay, we maybe had a small party the last week of the month17:36
jledbetterYeah, just a couple of people chillin' and eatin' pizza.17:37
mhall119yeah, just a couple17:37
mhall119...hundred17:37
jledbetterLittle shindig indeed.17:37
mhall119very low key17:37
mhall119I mean, the movie was only on like a 40 foot screen17:38
mhall119jledbetter: you really did miss out :(17:38
mhall119did you see the pictures?17:39
jledbetterYes. Saw pictures. I'll be there next time it's in Orlando.17:39
mhall119awesome17:39
mhall119bring jtatum back with you17:40
jledbetterHm... Well, ok ;)17:40
mhall119all this talk of pizza parties has made me hungry17:41
jledbetterAlmost lunch time :)17:44
* mhall119 just uploaded UDS party pics to flickr so they'll show on our team page in LD17:57
mhall119http://loco.ubuntu.com/teams/ubuntu-us-florida so nice :)17:57
karthick87Hi..!Can anyone help me in creating a loco team?19:24
karthick87Anyone..???19:27
serfuskarthick87, you should contact one of the loco-council19:29
karthick87serfus: wanna contact whom?19:30
czajkowskiserfus: what's up?19:31
czajkowskikarthick87: what loco team are you looking to start up19:31
serfus:)19:31
karthick87czajkowski: I am from india.I would like to start a locoteam for my state19:32
czajkowskikarthick87: there is already an indian team as far as I'm aware19:33
czajkowskikarthick87: you should talk to http://loco.ubuntu.com/teams/indian-team19:33
karthick87czajkowski: Thank you :)19:35
czajkowskino problem 19:36
czajkowskitime for dinner 19:36
czajkowskitoodles19:36
serfusbon appetit 19:36
CrazyLemonhm..do you guys know to whom i must complain if RSS feed for Canonical's news & events doesnt work (meaning it returns 404 for every feed) ?19:39
paultaghey serfus 19:39
paultaghey karthick87 :)19:39
karthick87hiyas paultag :)19:39
serfushowdy paultag, what's up?19:40
paultagserfus, thanks for the redirect, you rock19:40
paultagkarthick87, anything I can help with?19:40
paultagOh wait, czajkowski already took care of you 19:40
paultagnevermind19:40
karthick87paultag: yeah sure19:41
karthick87paultag: I wanna contribute for ubuntu documentation.Can you guide me?19:42
paultag/join #ubuntu-doc19:42
paultagkarthick87, ^19:42
karthick87oke :)19:43
czajkowskiCrazyLemon: webmaster19:43
CrazyLemonczajkowski ok..tnx :)19:44
czajkowskino problem 19:44
paultag!lococouncil > paultag 19:45
ubot4paultag, please see my private message19:45
paultag!lococouncil > czajkowski 20:01
ubot4czajkowski, please see my private message20:01
AlanBellCrazyLemon: who you can sometimes find in #ubuntu-website20:58
CrazyLemonAlanBell thanks but i guess someone just took out blogs and other feeds from canonical.com/rss.xml  so now only canonical related feeds are on that RSS21:00
AlanBellI have no idea21:01
=== Claudinux_ is now known as Claudinux
=== Claudinux_ is now known as Claudinux

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!