# |
Nov 30th 2017, 18:09 |
saeideng |
If yes hope to add this in core |
# |
Nov 30th 2017, 18:08 |
saeideng |
I think cake not support parse date for non-gregorian |
# |
Nov 30th 2017, 18:08 |
saeideng |
I need now parse date |
# |
Nov 30th 2017, 18:07 |
saeideng |
`$result = $now->i18nFormat(\IntlDateFormatter::FULL, null, 'en-IR@calendar=persian');` works for me |
# |
Nov 30th 2017, 18:06 |
dereuromark |
maybe this needs to be installed, or requires newer intl, that lib in general is a bid unreliable in that regards |
# |
Nov 30th 2017, 18:04 |
saeideng |
DateTimeZone::__construct(): Unknown or bad timezone (en-IR@calendar=persian) |
# |
Nov 30th 2017, 18:04 |
saeideng |
error omit |
# |
Nov 30th 2017, 18:03 |
saeideng |
but I try to `Time::parse('1396-09-09','en-IR@calendar=persian');` |
# |
Nov 30th 2017, 18:03 |
saeideng |
`Time::parse($nonGregorianDate, $localeOptions)` |
# |
Nov 30th 2017, 18:02 |
saeideng |
@lorenzo says in https://github.com/briannesbitt/Carbon/issues/624 |
# |
Nov 30th 2017, 17:58 |
dereuromark |
everything else is just so wrong |
# |
Nov 30th 2017, 17:57 |
dereuromark |
@mail IMO that should always have been the core default :slightly_smiling_face: |
# |
Nov 30th 2017, 17:56 |
saeideng |
I want to see we can support non-calendar |
# |
Nov 30th 2017, 17:56 |
inoas |
jep now that works |
# |
Nov 30th 2017, 17:56 |
dereuromark |
intl provides them afaik |
# |
Nov 30th 2017, 17:56 |
saeideng |
or even i18n |
# |
Nov 30th 2017, 17:55 |
saeideng |
chronos |
# |
Nov 30th 2017, 17:55 |
saeideng |
is there a method to parse date? |
# |
Nov 30th 2017, 17:55 |
saeideng |
hi |
# |
Nov 30th 2017, 17:52 |
dereuromark |
but that cotnains only Configure::write('Log.debug.file', 'cli-debug'); etc for me, and some plugin loads |
# |
Nov 30th 2017, 17:52 |
inoas |
and there is bootstrap_cli now I think |
# |
Nov 30th 2017, 17:51 |
inoas |
and you are right about internal link integrity checks obviously |
# |
Nov 30th 2017, 17:51 |
inoas |
I just want the 404 noise gone |
# |
Nov 30th 2017, 17:50 |
inoas |
yeah but for cli it aint too important for me |
# |
Nov 30th 2017, 17:50 |
dereuromark |
but there nothing changes, so not too relevant |
# |
Nov 30th 2017, 17:50 |
dereuromark |
also for CLI :slightly_smiling_face: |
# |
Nov 30th 2017, 17:49 |
inoas |
thank you for pointing out again |
# |
Nov 30th 2017, 17:49 |
inoas |
there I did add it ;-) |
# |
Nov 30th 2017, 17:49 |
inoas |
exactly |
# |
Nov 30th 2017, 17:49 |
dereuromark |
you need it for low level errors happening before middleware is invoked afaik |
# |
Nov 30th 2017, 17:49 |
dereuromark |
are you sure the custom error handler is not in bootstrap of skeleton app? |
# |
Nov 30th 2017, 17:48 |
dereuromark |
bootstrap + middleware for newer apps afaik: https://github.com/dereuromark/cakephp-tools/blob/master/docs/Error/ErrorHandler.md |
# |
Nov 30th 2017, 17:48 |
inoas |
*confused* |
# |
Nov 30th 2017, 17:48 |
inoas |
the custom error handler wasn't necessary before... |
# |
Nov 30th 2017, 17:45 |
inoas |
so I do need to do more than app.php configuration? |
# |
Nov 30th 2017, 17:43 |
dereuromark |
error handling / middleware |
# |
Nov 30th 2017, 17:43 |
inoas |
where in the tools plugin to look about? |
# |
Nov 30th 2017, 17:42 |
inoas |
it worked for an older app but now doesnt work anymore |
# |
Nov 30th 2017, 17:42 |
inoas |
https://gist.github.com/inoas/8e4f9646cbc836bcca15a4790aac801e/edit |
# |
Nov 30th 2017, 17:42 |
inoas |
I am already doing that |
# |
Nov 30th 2017, 17:41 |
inoas |
also possibly for MissingActionException |