8000 Date Format · Issue #197 · xemle/home-gallery · GitHub
[go: up one dir, main page]

Skip to content

Date Format #197

Open
Open

Description

@bluecasita

Apologies if this has been asked here before. First off, I love this program - compliments to the author. It's great...

Second, is there any way to change the date format in the gallery (when scrolling it pops up )and also when displaying the EXIF info of a specific pic? So, instead of DD/MM/YYYY could we get MM/DD/YYYY or YYYY/MM/DD?

Activity

  1. xemle commented on Oct 30, 2025

    @xemle
    Owner

    Hi @bluecasita

    thank you for the flowers and reaching out.

    I've added customization of the date formats in the master. Please review config example in the webapp section to customize it. E.g

    webapp:
      format:
        date: '%m/%d/%Y' # for MM/DD/YYYY

    The other formats are required for the scollbar in the overview and can be customized as well.

  2. bluecasita commented on Nov 3, 2025

    @bluecasita
    ContributorAuthor

    Thank you so much for this. How do I update my docker image to the 'master' version. I tried using :master as a tag and it failed.

  3. bluecasita commented on Nov 16, 2025

    @bluecasita
    ContributorAuthor

    Hi @xemle,

    This still isn't working for me. I'm running home gallery in docker. According to Claude.ai the server isn't passing the webapp.format config to the frontend.

    When I check window.__homeGallery in the HTML source, I see:

    window.__homeGallery={"pluginManager":...,"sources":[],"disabled":[],...}

    But there's no format object being passed through. The webapp needs the server to include the format config in this initialization object.

    Config file is being loaded correctly (other settings like pluginManager.disabled work), but the webapp.format section isn't making it to the browser.

    Running master-06bde34c (built 2025-11-16).

  4. xemle commented on Nov 18, 2025

    @xemle
    Owner

    @bluecasita please check the newest master build and validate if it is fixed now.

    As mentioned in #205 only a subset of date keys is implemented yet

  5. bluecasita commented on Nov 18, 2025

    @bluecasita
    ContributorAuthor

    @xemle I still get the same issue. I downloaded the :latest docker image. Here is what I see:

    Image

    It's the same when scrolling the main library too. Here is my gallery.config.yml file:

    
    sources:
      - dir: '/data/media'
    
    pluginManager:
      disabled:
        - baseMapper.faceMapper
        
    webapp:
      format:
        date: '%F'
        monthYear: '%B %Y'
        year: '%Y'
        time: '%H:%M:%S'
        hourMinute: '%I:%M %p'
    
    logger:
    
    59A1
      - type: console
        level: info
      - type: file
        level: debug
        file: '{configDir}/{configPrefix}gallery.log'
    

    What am I missing? Aside from running the latest image do I need to delete the DB or run any kind of refresh steps?

  6. bluecasita commented on Nov 19, 2025

    @bluecasita
    ContributorAuthor

    So, I think I have it working now... I was using %F which isn't in the list of available options you provided.

    One thing I noticed is that the time stamp on the photo is always "translated" to the local time where you are viewing the photo. So, for example, if I am in US Central Time looking at photos taken in Spain at 19:00 (7pm) the time stamp will show as 13:00 (1pm). I don't think this is a problem, just something to be aware of. It would be very cool if it showed the actual time the photo was taken and the timezone, so in my example above, instead of 13:00 it would say 19:00 (GMT+2). Not sure if this is possible...

    I'd also like it if we could show 12-hour time with AM/PM indicator rather than 24-hour time.

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0