Giter Site home page Giter Site logo

Change timestamp characters about btfu HOT 8 OPEN

elytra avatar elytra commented on June 12, 2024
Change timestamp characters

from btfu.

Comments (8)

alexbobp avatar alexbobp commented on June 12, 2024

Ah, I didn't really think of that. I just made it look pretty on linux, and then later changed the behavior on windows when I realized it caused crashes. But you make a very good point. I think the best solution would be for me to add a config option to force the windows timestamp format (with hh.mm) regardless of platform, does that sound good?

from btfu.

kencinder avatar kencinder commented on June 12, 2024

Whatever is easiest for you, that works for me.

from btfu.

alexbobp avatar alexbobp commented on June 12, 2024

Here you go. Sorry for the very slow turnaround time, I've been busy and also I wanted to make sure this feature included migration code to rename existing backups, since BTFU expects to be able to enumerate existing backups and parse the datestamps.

It adds a config option for whether to use windows-friendly timestamps, with the default value set based on your current platform. If you change the value and restart minecraft, it will rename all your backups to the other format. (turning this option off on windows will surely cause a nice crash.)

This is the commit, if you care: 515d991

I want to do a bit more testing before I do a version bump and push a new release, but I think it works, and if you'd like to try it out, get a build from https://ci.elytradev.com/job/elytra/job/BTFU/job/multi-version/3/

from btfu.

kencinder avatar kencinder commented on June 12, 2024

No problem, thanks. I've only had cause to rollback once so far, and I just sorted by date/time to make it easier to find, but this option will make it much easier to see when looking at backups over SMB.

from btfu.

alexbobp avatar alexbobp commented on June 12, 2024

I'm keeping this open for a bit longer until I make a release that includes this change. Hopefully kencider is using the CI build, since I haven't heard back from them. (Ken, let me know if there are any issues, or if you need this change in a release build ASAP, otherwise it's going to come along with a few other features when they're ready)

from btfu.

kencinder avatar kencinder commented on June 12, 2024

I was actually waiting on your release, but I can definitely test a CI build if you need me to.

from btfu.

alexbobp avatar alexbobp commented on June 12, 2024

Well now I feel like a bit of a jerk! That means you've been waiting weeks...

Like I said, that CI build I linked is working fine. But I can do a release soon. There is one other minor config feature being worked on (backup only while players are online), and between the two of these, surely it's worth a release. I still have a lot to work on though, to achieve BTFU's hopes and dreams!

from btfu.

kencinder avatar kencinder commented on June 12, 2024

Don't feel like a jerk...this was a minor nuisance issue, I only waited to see what a release held.

Only doing backups when players are online sounds great, especially for us as ours is a friends+family private server where there are often times nobody is on.

If you don't need me to test a CI build, I'm perfectly fine with waiting for a full release build...especially with the above feature.

from btfu.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.