Overwriting a file with the same name gives wrong date in warning
I am running OC7 ( commit 283b483100c21df143e7f432551f5f5264b8ee55 ) and noticed that when overwriting a file within the web-interface, it warns that original file dated: December 19, 46246 1:23 will be overwritten.
To exclude conversion errors from previous versions of OC I repeated this with newly created/imported files and the result is the same. No external storage, just local. Looking at the date of the original file, it is correct both in web and downloaded owncloud folder, so it seems it is just the displaying within the warnings which translates wrong?
Server Ubuntu 13.10 with Apache 2.4.6, PHP 5.5.3, Mysql 5.5.37, independent of client OS or browser
There have been changes in the files app and the timestamp format might not match any more what the "overwrite" dialog is expecting. I suspect there might be a missing "divide the timestamp through 1000".
There where a couple of occurrences of original.mtime*1000 in the file core/js/oc-dialogs.js Removing the *1000 gives me a sensible time (time of uploading not original file date, but I guess uploading by webpage won't preserve the original file stamp).
I have an up to date pullwith the updated file and if you tell me how I can probably upload this for review. (I am no programmer and have no experience with git so I am not sure how). But if it is not that simple, it are only a couple of lines so changes are made quite quickly.
@requist you probably mean that you have a fork of the project ? Did you commit + push your change to that fork ? If yes, then from there you should be able to create a pull request from your fork to owncloud/core
Mostly I meant no experience ;) I had a clone with the latest pull in which I made the changes. But now I forked and made a pull-request (changes should always make use of the fork also when they are small?). Anyway, I hope this is the correct point to make the alteration.
Thanks for the PR. :smile:
Regarding your question: the workflow on Github requires you to fork any project that you want to contribute to, as long as you don't have push permissions in that project. This is regardless of the size of the fix.
However, you can get push access to the owncloud repo if you sign the contributor agreement (http://owncloud.org/about/contributor-agreement/). After that, you can simply create branches in that repository instead of using a fork and submit PRs from the branch to master.
Some people still prefer to use a fork as there is less risk of breakage if you'd push to the wrong branch (master) by mistake in the official repo. :smile:
Setting to OC7 as this is a regression.
Fixed through https://github.com/owncloud/core/pull/8654 Thanks :smile: