Skip to content
This repository was archived by the owner on Jul 25, 2025. It is now read-only.
This repository was archived by the owner on Jul 25, 2025. It is now read-only.

Date/time conversion fails on Sequoia 15.x #172

Description

@nk9

is your problem related to the PHP binary, PHP Path, PHP installation, etc.?
No

Are you using the latest version of the workflow?
Yes, v4.0.7

Have you installed the workflow dependencies?
Yes:

$ which php
/opt/homebrew/bin/php

Describe the bug
I can't use the time subcommand for anything.

To Reproduce
Steps to reproduce the behavior:

  1. Open Alfred with CA installed and type time. Then ensure you've selected the right one.
  2. Follow the example in the README: "time +15 years"
  3. You only get Google, etc results in Alfred, the workflow does nothing.
Image

Expected behavior
As in the README.

Debug Output

See debug output

[16:45:47.600] Calculate Anything[Script Filter] Queuing argument '+15 years'
[16:45:47.652] Calculate Anything[Script Filter] Script with argv '(null)' finished
[16:45:47.655] STDERR: Calculate Anything[Script Filter] PHP Deprecated:  Carbon\Traits\Date::utcOffset(): Implicitly marking parameter $minuteOffset as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1440
PHP Deprecated:  Carbon\Traits\Localization::locale(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php on line 436
PHP Deprecated:  Carbon\Traits\Test::setDefaultTimezone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Test.php on line 183
PHP Deprecated:  Return type of Carbon\Traits\Date::createFromTimestamp($timestamp, $tz = null) should either be compatible with DateTime::createFromTimestamp(int|float $timestamp): static, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Timestamp.php on line 29
PHP Deprecated:  Symfony\Component\Translation\Translator::__construct(): Implicitly marking parameter $formatter as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Translator.php on line 91
PHP Deprecated:  Symfony\Component\Translation\Translator::__construct(): Implicitly marking parameter $cacheDir as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Translator.php on line 91
PHP Deprecated:  Symfony\Contracts\Translation\TranslatorInterface::trans(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorInterface.php on line 66
PHP Deprecated:  Symfony\Contracts\Translation\TranslatorInterface::trans(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorInterface.php on line 66
PHP Deprecated:  Symfony\Component\Translation\Formatter\MessageFormatter::__construct(): Implicitly marking parameter $intlFormatter as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Formatter/MessageFormatter.php on line 33
PHP Deprecated:  Symfony\Component\Translation\IdentityTranslator::__construct(): Implicitly marking parameter $selector as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/IdentityTranslator.php on line 32
PHP Deprecated:  Symfony\Contracts\Translation\TranslatorTrait::trans(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorTrait.php on line 46
PHP Deprecated:  Symfony\Contracts\Translation\TranslatorTrait::trans(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorTrait.php on line 46
PHP Deprecated:  Carbon\CarbonTimeZone::toOffsetName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 158
PHP Deprecated:  Carbon\CarbonTimeZone::toOffsetTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 172
PHP Deprecated:  Carbon\CarbonTimeZone::toRegionName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 188
PHP Deprecated:  Carbon\CarbonTimeZone::toRegionTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 230
[16:45:47.656] Calculate Anything[Script Filter] Deprecated: Carbon\Traits\Date::utcOffset(): Implicitly marking parameter $minuteOffset as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Date.php on line 1440

Deprecated: Carbon\Traits\Localization::locale(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Localization.php on line 436

Deprecated: Carbon\Traits\Test::setDefaultTimezone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Test.php on line 183

Deprecated: Return type of Carbon\Traits\Date::createFromTimestamp($timestamp, $tz = null) should either be compatible with DateTime::createFromTimestamp(int|float $timestamp): static, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/Traits/Timestamp.php on line 29

Deprecated: Symfony\Component\Translation\Translator::__construct(): Implicitly marking parameter $formatter as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Translator.php on line 91

Deprecated: Symfony\Component\Translation\Translator::__construct(): Implicitly marking parameter $cacheDir as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Translator.php on line 91

Deprecated: Symfony\Contracts\Translation\TranslatorInterface::trans(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorInterface.php on line 66

Deprecated: Symfony\Contracts\Translation\TranslatorInterface::trans(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorInterface.php on line 66

Deprecated: Symfony\Component\Translation\Formatter\MessageFormatter::__construct(): Implicitly marking parameter $intlFormatter as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/Formatter/MessageFormatter.php on line 33

Deprecated: Symfony\Component\Translation\IdentityTranslator::__construct(): Implicitly marking parameter $selector as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation/IdentityTranslator.php on line 32

Deprecated: Symfony\Contracts\Translation\TranslatorTrait::trans(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorTrait.php on line 46

Deprecated: Symfony\Contracts\Translation\TranslatorTrait::trans(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/symfony/translation-contracts/TranslatorTrait.php on line 46

Deprecated: Carbon\CarbonTimeZone::toOffsetName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 158

Deprecated: Carbon\CarbonTimeZone::toOffsetTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 172

Deprecated: Carbon\CarbonTimeZone::toRegionName(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 188

Deprecated: Carbon\CarbonTimeZone::toRegionTimeZone(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /Users/nick/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.757C2117-F8FC-40FE-9659-87AA33EC6D5C/vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php on line 230
{"items":[{"title":"19 January, 2040, 8:45:47 am","subtitle":"Format j F, Y, g:i:s a","arg":"19 January, 2040, 8:45:47 am"},{"title":"14 years, 11 months, 4 weeks, 2 days, 23 hours, 59 minutes, 59 seconds","subtitle":"Timespan","arg":"14 years, 11 months, 4 weeks, 2 days, 23 hours, 59 minutes, 59 seconds"},{"title":2210604347,"subtitle":"Timestamp","arg":2210604347}]}

Oddly, despite all the deprecation warnings, it's actually generating valid items:

{"items":[{"title":"19 January, 2040, 8:45:47 am","subtitle":"Format j F, Y, g:i:s a","arg":"19 January, 2040, 8:45:47 am"},{"title":"14 years, 11 months, 4 weeks, 2 days, 23 hours, 59 minutes, 59 seconds","subtitle":"Timespan","arg":"14 years, 11 months, 4 weeks, 2 days, 23 hours, 59 minutes, 59 seconds"},{"title":2210604347,"subtitle":"Timestamp","arg":2210604347}]}

System information:

  • OS: Sequoia 10.15.2
  • Alfred Version 5.5.1
  • PHP Version - 8.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions