mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
More timestamp corrections (#2933)
* Fix incorrect timestamp updates * Correct folder time fields * Add migration with new indexes * Correct mod_time format * Add mod_time to data massage
This commit is contained in:
@@ -102,9 +102,9 @@ func Test_FolderStore_Create(t *testing.T) {
|
||||
func Test_FolderStore_Update(t *testing.T) {
|
||||
var (
|
||||
path = "path"
|
||||
fileModTime = time.Date(2000, 1, 2, 3, 4, 5, 6, time.UTC)
|
||||
createdAt = time.Date(2001, 1, 2, 3, 4, 5, 6, time.UTC)
|
||||
updatedAt = time.Date(2002, 1, 2, 3, 4, 5, 6, time.UTC)
|
||||
fileModTime = time.Date(2000, 1, 2, 3, 4, 5, 0, time.UTC)
|
||||
createdAt = time.Date(2001, 1, 2, 3, 4, 5, 0, time.UTC)
|
||||
updatedAt = time.Date(2002, 1, 2, 3, 4, 5, 0, time.UTC)
|
||||
)
|
||||
|
||||
tests := []struct {
|
||||
|
||||
Reference in New Issue
Block a user