Closed ginge closed 5 years ago
If you request a format such as %T (:H:%M:%S) and don't provide a buffer long enough, then it will return an empty buffer back.
PebbleOS will return the last usable chunks that fit. For example using %T with a buflen of 6 should return "HH:MM" instead of the intended "HH:MM:SS"
Small sidenote that this is a extension to the standard, but I can see why it would be useful
If you request a format such as %T (:H:%M:%S) and don't provide a buffer long enough, then it will return an empty buffer back.
PebbleOS will return the last usable chunks that fit. For example using %T with a buflen of 6 should return "HH:MM" instead of the intended "HH:MM:SS"