Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages

Installation Instructions

composer require richardkeep/nova-timenow

Readme

Nova Time Now

Latest Version on Packagist Style CI Total Downloads

A Laravel Nova card to display the current time from different timezones in the world.

screenshot of the timenow card

Version L5.6 L5.7 L5.8 L6 L7 L8 L9
1.*
2.*

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require richardkeep/nova-timenow

Next up, you must register the tool with Nova. This is typically done in the cards method of the NovaServiceProvider.

// in app/Providers/NovaServiceProvder.php

// ...

public function cards()
{
    return [
        // ...
        new \Richardkeep\NovaTimenow\NovaTimenow,
    ];
}

Customization

By default, the system's timezone and America\Mexico_City will be used as the list of timezones. To override this, please add more valid timezones.

public function cards()
{
    return [
        // ...
        (new \Richardkeep\NovaTimenow\NovaTimenow)->timezones([
            'Africa/Nairobi',
            'America/Mexico_City',
            'Australia/Sydney',
            'Europe/Paris',
            'Asia/Tokyo',
        ])->defaultTimezone('Africa/Nairobi'),
    ];
}

Usage

The card will be automatically displayed on the dashboard. You can now select the timezone from the dropdown list of registered timezones to view the current time in that region,

Screenshots

Back to Top
Added 7 years ago
Last updated 1 Year Ago
Version 3.0.0
Nova Version ^4.0|^5.0
Composer
richardkeep/nova-timenow
GitHub stars 9
Packagist downloads 48,390

Favorites

8 users favorited

Rating

N/A
(out of 5)
★★★★★
★★★★
★★★
★★
0 ratings

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas