plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Include today's date in user's timezone in the image generation prompt

Open natesilva opened this issue 6 months ago • 2 comments

Applies to

Plugin: nano_banana_dashboard, but this would be useful for many plugins.

Summary

When I select 1x /day as my refresh rate for a plugin, it refreshes shortly after midnight in my local time.

However, the calendar data feeding into the prompt may not have been refreshed yet, causing the payload to still contain yesterday's date in fields like today_in_tz.

Because the prompt does not include the actual current date anywhere else, Nano Banana renders desk calendars, wall calendars, and "today" event highlights for the previous day.

Suggested Fix

  • Inject a dedicated current_date or today field into the prompt payload, formatted in the user's timezone, independent of the plugin data refresh state.
  • The prompt instructions should tell Nano Banana to use current_date as today’s date.

Note: Google AI Studio allows me to view the full prompt for each generation. The only current-date field I saw was in the calendar date, a field called today_in_tz, and it had yesterday’s date relative to the day that the image was generated. This is probably because the image was generated shortly after midnight and the calendar data had not been refreshed.

Alternately, but a bigger request:

  • Allow users to schedule the times when a plugin refreshes.

Another suggestion, that won’t work for me:

  • Refresh multiple times per day. A single Nano Banana Pro generation costs around $0.16. If I refresh 4x /day, over a month, that's almost $20. I would prefer to keep generating only 1x /day (about $5/month).

natesilva avatar May 17 '26 17:05 natesilva

Based on the resolution from #113 there’s an interesting workaround for this. Now that the refresh rate logic is refactored, the image generation plugin has a Max refresh rate setting. Workaround:

  1. Set Max refresh rate to 1x /day
    • The image will be refreshed 24 hours after the previous update, whenever that was.
  2. Wake up a few minutes early one day and use "Force Refresh" to update the plugin.

Result: Plugin refreshes once a day, just before I wake up. This gets around the date issue because by the time I wake up the calendar has certainly been refreshed.

This solves my problem, but the UX isn’t great. It would better to either include the date in the prompt (would be a solution for this plugin only) or to allow users to schedule when the 1x /day update occurs (would be a general solution).

natesilva avatar May 27 '26 18:05 natesilva

Closing this: With the updated plugin refresh logic, the calendar data is being refreshed just before retrieval, and the image generation is happening at around 12:15 local time each night. This is sufficient to avoid the above problem.

natesilva avatar Jul 23 '26 22:07 natesilva