chat.freenode.net #tryton log beginning Thu Mar 8 00:00:01 CET 2018 | ||
-!- cryptic(~cryptic@142.196.170.87) has joined #tryton | 23:00 | |
-!- cryptic(~cryptic@142.196.170.87) has joined #tryton | 23:01 | |
-!- robink(~quassel@unaffilated/robink) has joined #tryton | 23:05 | |
-!- cryptic(~cryptic@142.196.170.87) has joined #tryton | 23:11 | |
-!- cryptic(~cryptic@142.196.170.87) has joined #tryton | 23:42 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:55 | |
-!- cdchapman(~perturbed@73.98.169.97) has joined #tryton | 00:30 | |
-!- robink(~quassel@unaffilated/robink) has joined #tryton | 00:39 | |
-!- csotelo(~csotelo@2001:1388:49c6:5729:fbf8:6db:4ee2:edf2) has joined #tryton | 01:21 | |
-!- thaneor1(~ldlc6@179.26.143.158) has joined #tryton | 01:59 | |
-!- yangoon1(~mathiasb@i59F5FC07.versanet.de) has joined #tryton | 03:57 | |
-!- caf_(~caf@corp-179-49-46-5.uio.puntonet.ec) has joined #tryton | 05:34 | |
-!- _2cadz(~2cadz@82-64-14-213.subs.proxad.net) has joined #tryton | 06:11 | |
-!- cdchapman(~perturbed@73.98.169.148) has joined #tryton | 06:34 | |
-!- slackmare(~jordi@139.47.12.106) has joined #tryton | 07:08 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 07:15 | |
-!- cdchapman(~perturbed@73.98.169.103) has joined #tryton | 07:51 | |
-!- mrichez(~smuxi@212.166.19.82) has joined #tryton | 07:54 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 08:12 | |
-!- bechamel(c21d6290@gateway/web/thelounge/ip.194.29.98.144) has joined #tryton | 08:20 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:21 | |
-!- rpit(~rpit@p200300C88F306C0056EE75FFFE0DD3C7.dip0.t-ipconnect.de) has joined #tryton | 08:36 | |
-!- jmousset(~jeremy@176.158.167.193) has joined #tryton | 08:44 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 08:49 | |
-!- cdchapman(~perturbed@73.98.169.170) has joined #tryton | 08:49 | |
-!- catonano(~user@151.50.134.28) has joined #tryton | 09:17 | |
-!- thaneor(~ldlc6@179.26.143.158) has joined #tryton | 10:04 | |
-!- meigallodixital(~meigallod@162.200.26.77.dynamic.reverse-mundo-r.com) has joined #tryton | 13:26 | |
-!- caf_(~caf@corp-190-12-31-162.cue.puntonet.ec) has joined #tryton | 13:55 | |
-!- thaneor1(~ldlc6@179.26.22.98) has joined #tryton | 14:01 | |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 14:15 | |
-!- catonano(~user@151.50.134.28) has joined #tryton | 14:33 | |
-!- alex_(~alex@179.43.97.56) has joined #tryton | 15:35 | |
-!- alex_(~alex@179.43.97.56) has joined #tryton | 15:36 | |
-!- lalo_(~lalo@179.43.97.56) has joined #tryton | 15:38 | |
alex_ | hello comjunity, I have an issue with date time fields, I am at GMT -0500, on tryton, I dont have any issue on time view on the forms, however when I print a report with a time field, the time is printed on UTC | 15:38 |
---|---|---|
lalo_ | hello | 15:38 |
alex_ | any suggest? | 15:39 |
cedk | alex_: server is always UTC | 15:43 |
cedk | alex_: make a conversion to the desired timezone | 15:44 |
alex_ | cedk: so you mean just printing in the desired timezone | 15:48 |
alex_ | its not necesary to set timezone in python right? | 15:49 |
cedk | alex_: you must set the timezone to the datetime | 15:55 |
alex_ | cedk: thanks! | 15:59 |
-!- cdchapman(~perturbed@73.98.169.213) has joined #tryton | 16:04 | |
cedk | alex_: you should use something like: pytz.UTC.localize(d).astimezone(tz).strftime('%x %X %Z') | 16:09 |
csotelo_at_work | alex_, company configuratoin have the time zone setting | 16:14 |
csotelo_at_work | I guess it is more related to a report setting like setting default languaje | 16:15 |
csotelo_at_work | cedk, I have a similar issue on a report, the time on the tryton is ok since I am using the time zone configuration for company, however when I print a report, the time is printed on UTC | 16:34 |
csotelo_at_work | I mean, the issue is just on report | 16:34 |
csotelo_at_work | since I am using the datime from a model field, no setting it as part of the context a a hard coded value | 16:35 |
csotelo_at_work | I also noticed on reports that a default languaje is set on report, is there something similar for time zone on reports? | 16:36 |
cedk | csotelo_at_work: no, each report must take care of how datetime should be printed | 16:40 |
cedk | but I think we could have a format_datetime in the default Report context which could take a timezone as optional paramter and take care of the conversion | 16:41 |
csotelo_at_work | an dthe """how datetime should be printed""" is set on some place? or could be better to convert it and set as individual value on context dict? | 16:41 |
cedk | csotelo_at_work: do not understand | 16:43 |
csotelo_at_work | I mean, as you said, """each report must take care of how datetime should be printed""" then, where date time or time zone must be set: as a value on context dict? probably a link to a module printing date times? | 16:45 |
cedk | csotelo_at_work: as it will be a parameter of format_datetime, it will come from where the developer will take it | 16:50 |
csotelo_at_work | perfect! thanks a lot cedk | 16:51 |
cedk | I never said I will do it | 16:52 |
cedk | https://bugs.tryton.org/issue7202 | 17:00 |
-!- NeonKing(~Neonking@176.179.38.86) has joined #tryton | 17:03 | |
sisalp | hello evybody ! How is Tryton for accounting in Switzerland ? | 17:32 |
-!- rmu(~robert@cpe90-146-69-94.liwest.at) has joined #tryton | 17:33 | |
-!- rmu(~robert@cpe90-146-69-94.liwest.at) has joined #tryton | 17:50 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 17:58 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 18:15 | |
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | 18:26 | |
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | 18:57 | |
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | 18:59 | |
-!- cdchapman(~perturbed@73.98.169.213) has joined #tryton | 19:06 | |
-!- mariomop(~quassel@186.153.82.253) has joined #tryton | 19:08 | |
-!- lalo_(~lalo@179.43.97.56) has joined #tryton | 19:10 | |
-!- catonano(~user@151.50.134.28) has joined #tryton | 19:25 | |
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | 19:29 | |
-!- caf_(~caf@corp-190-12-31-162.cue.puntonet.ec) has joined #tryton | 19:36 | |
-!- cdchapman(~perturbed@73.98.169.205) has joined #tryton | 19:52 | |
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | 19:57 | |
-!- cdchapman(~perturbed@73.98.169.205) has joined #tryton | 20:07 | |
-!- cdchapman(~perturbed@73.98.169.205) has joined #tryton | 20:21 | |
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton | 21:00 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 21:31 | |
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton | 21:40 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!