04:20.40 | *** join/#flow3 skurfuerst (~Adium@i59F6A652.versanet.de) |
06:49.35 | *** join/#flow3 afoeder (~afoeder@p4FD647B5.dip0.t-ipconnect.de) |
06:56.44 | *** join/#flow3 foertel (~foertel@217.19.187.106) |
10:04.05 | *** join/#flow3 infobot (~infobot@rikers.org) |
10:04.05 | *** topic/#flow3 is FLOW3 | http://flow3.typo3.org/ | FLOW3 is a PHP framework that makes a difference. |
10:07.53 | skurfuerst | ivan_77: inside a ViewHelper, you can call $this->controllerContext->getRequest(); and this contains nformation as current controller and action. |
10:08.31 | skurfuerst | afoeder: I see the problem, but I don't have a good solution yet. I'd suggest to always use the UTC timezone and 00:00 as time. |
10:10.41 | afoeder | yep, I did so at the moment... But I am still a bit in fear if there's a gap I cannot see ... |
10:22.11 | *** join/#flow3 skurfuerst (~Adium@i59F6A652.versanet.de) |
10:40.52 | denjerec | Microsoft can't seem to handle Birthdays afoeder, so you're not alone. |
10:41.11 | denjerec | In their system, people are shown as having their birthday 1 day too early if they're entered during a summertime :/ |
10:41.21 | denjerec | (For exactly the reason you mention) |
10:42.15 | afoeder | yes, I read a bit around in the WWW, I can hardly find any information... |
10:43.42 | afoeder | the summertime itself is at least not really my problem; but timezones... I tried setting a date with 0.00 and UTC; and when var_dumping it I get 23.00 and one day early. |
10:44.22 | skurfuerst | hm, what happens if you use $date->format? |
10:44.59 | afoeder | hm, wait a sec |
10:45.27 | skurfuerst | how did you set the date? |
10:45.47 | afoeder | *ahem* I hoped you would not ask ;-) |
10:46.20 | skurfuerst | well but that's really important ;) |
10:46.21 | afoeder | >> |
10:46.49 | afoeder | yep; erm.. I would like to paste some code; but it seems my IRC is not multiline capable.... |
10:46.54 | afoeder | >> |
10:46.55 | afoeder | $givenDate = $this->propertyMapper->convert( array( 'date' => $value['y'] . '-' . $value['m'] . '-' . $value['d'], 'dateFormat' => 'Y-m-d', 'hour' => 0, 'timezone' => 'UTC', ), 'DateTime' ); |
10:47.32 | afoeder | maybe using the property mapper in this scenario is a bit overkill; I don't know |
10:47.40 | afoeder | I use it inside a validator |
10:47.40 | skurfuerst | hm why do you use the properrty mapper here, and not directly create the DateTime object using "new \DateTime()"? |
10:48.05 | afoeder | ...OK, because of the overkill ;-) |
10:48.22 | afoeder | So using new \DateTime() would be absolutely OK? |
10:48.27 | skurfuerst | sure, why not? :) |
10:48.54 | skurfuerst | I'm currently checking "Guide to Date Time programming" for your issue |
10:49.10 | afoeder | cool, thanks |
10:52.00 | afoeder | ...this issue is useful in birthday cases as also in "Event"-scenarios |
10:59.27 | skurfuerst | OK, got it |
10:59.35 | skurfuerst | afoeder: you should use: $date = \DateTime::createFromFormat('!Y-m-d', '2011-05-12', new \DateTimeZone('UTC')); |
10:59.49 | skurfuerst | important is the ! before Y-m-d; makes sure to reset all other times to zero |
11:00.18 | afoeder | ok; else it assumes "now" I think as h,m,s? |
11:01.25 | skurfuerst | correct |
11:11.25 | afoeder | hm; i'd love to inform you about the results; but my system is currently hangig up :) |
11:27.10 | *** join/#flow3 afoeder (~afoeder@p4FD647B5.dip0.t-ipconnect.de) |
11:29.39 | *** join/#flow3 danielkoch (~danielkoc@212.6.182.1) |
11:31.34 | *** join/#flow3 boonkerz_ (~boonkerz@p5B28B085.dip.t-dialin.net) |
11:36.16 | afoeder | OK, that worked fine: now even when var_dumping my DateTime Object it stays at the correct date, 0.00, and says "UTC". |
11:40.54 | skurfuerst | great |
11:41.25 | afoeder | yip :) |
12:20.40 | *** join/#flow3 MatthiasG (~chatzilla@fw.frappant.ch) |
13:44.54 | afoeder | hm; isn't it possible to nest Fluid Inline-View-Helpers? |
13:46.03 | afoeder | I'm trying to do this: {wb:datePartRange(from: {f:format.date(date: 'now', format: 'Y')}, to: 1905, prepend: {0: 'Jahr:'})} |
13:47.12 | afoeder | at least this does work: |
13:47.13 | afoeder | <f:form.select name="birthdate[y]" options="{wb:datePartRange(from: 2012, to: 1905, prepend: {0: 'Jahr:'})}" /> |
13:48.02 | afoeder | this viewHelper returns an array and this is considered as population for the <select>-box... |
14:14.03 | *** join/#flow3 ger^kallisti (~kyrill@dslb-094-216-057-137.pools.arcor-ip.net) |
15:07.56 | *** join/#flow3 skurfuerst (~Adium@i59F6A652.versanet.de) |
15:23.21 | *** join/#flow3 afoeder (~afoeder@p4FD647B5.dip0.t-ipconnect.de) |
15:24.06 | afoeder | ...is it OK to check if an object is of the right type by using '=== get_class(...)'? |
15:24.42 | foertel | why not check $object instanceof Tx_ ... |
15:24.53 | foertel | not Tx :) but instanceof |
15:25.30 | afoeder | I actually tried this at first, but obviously "instanceof" does return nothing if the class does not inherit anything. |
15:26.27 | afoeder | concrete: I would like to know if my variable is of type \TYPO3\FLOW3\Security\Account... |
15:27.10 | afoeder | oh sh***... wait a minute |
15:27.57 | afoeder | :-/ OK, it *does* work, but I should use the leading namespace-backslash... :-) |
15:29.11 | afoeder | I thought my IDE marks it red, but it doesn't.... |
15:29.40 | foertel | :) |
15:30.02 | afoeder | mistake-chaining... |
16:09.16 | *** part/#flow3 afoeder (~afoeder@p4FD647B5.dip0.t-ipconnect.de) |
16:25.48 | *** join/#flow3 skurfuerst (~Adium@i59F6A652.versanet.de) |
16:34.21 | *** join/#flow3 Thasmo (~thasmo@d86-32-70-74.cust.tele2.at) |
16:43.33 | *** join/#flow3 beberlei (~twitter@koln-5d81a382.pool.mediaWays.net) |
16:57.35 | *** join/#flow3 Number-5 (~typobot@li200-166.members.linode.com) |
17:00.55 | *** join/#flow3 Number-5 (~typobot@li200-166.members.linode.com) |
17:33.40 | *** join/#flow3 foertel (~foertel@217.19.187.106) |
18:30.33 | *** join/#flow3 boonkerz_ (~boonkerz@p5B28B085.dip.t-dialin.net) |
18:38.41 | *** join/#flow3 soee (~soee@dqy78.neoplus.adsl.tpnet.pl) |
19:08.29 | *** join/#flow3 skurfuerst (~Adium@i59F6B06C.versanet.de) |
19:21.36 | *** join/#flow3 amkoroew (~matze@p5B10721D.dip.t-dialin.net) |
19:28.51 | *** join/#flow3 skurfuerst (~Adium@i59F6B06C.versanet.de) |
19:31.24 | amkoroew | Hello @all |
19:31.24 | amkoroew | I have a problem with the quickstart guide. my hoster is all-inkl.com and phpinfo() says version 5.3.6-nmm1 |
19:31.24 | amkoroew | I downloaded FLOW3-1.0.0-beta2.tar.gz and unpacked it. |
19:31.24 | amkoroew | my problem is now that I get errors using this command ./flow3 core:setfilepermissions MYJOHN www-data www-data |
19:31.24 | amkoroew | PHP Warning: require(__DIR__/Packages/Framework/TYPO3.FLOW3/Scripts/flow3.php): failed to open stream: No such file or directory in /[...]/Quickstart/flow3 on line 28 |
19:32.35 | *** join/#flow3 foertel (~foertel@80.187.159.81) |
20:35.25 | *** part/#flow3 amkoroew (~matze@p5B10721D.dip.t-dialin.net) |
22:28.38 | *** join/#flow3 soee (~soee@dqy78.neoplus.adsl.tpnet.pl) |