Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The dates before 1970 are not well displayed #1909

Closed
Ryux opened this issue Oct 25, 2016 · 3 comments
Closed

The dates before 1970 are not well displayed #1909

Ryux opened this issue Oct 25, 2016 · 3 comments
Labels
1. to develop Accepted and waiting to be taken care of bug feature: filesystem

Comments

@Ryux
Copy link

Ryux commented Oct 25, 2016

If you have files before 1970, the date is not well displayed

Steps to reproduce

  1. Import some files
  2. touch the file on the Filesystem and change the date (touch -a -m -t 196911131200.00 testFile)
  3. rescan with occ

Expected behaviour

Dates have to be displayed as the chosen format

Actual behaviour

Display '?'

Server configuration

Operating system: Linux Debian 8

Web server: Apache

Database: MariaDB

Nextcloud version: 10

The behavior is worse if the file is accessed across an SFTP storage... (the date is in the future)

Ryu

@nickvergessen
Copy link
Member

Well the only way around this would be to switch from int to datetime on the database level.
But that is nothing we can do I guess, because the update would take like forever.

@Ryux
Copy link
Author

Ryux commented Oct 27, 2016

Hum... It is maybe not as difficult. If I'm not wrong, we can use negative numbers to manage dates before 1970.
In this case, we could display correctly the values.
I just tried and it's ok for the details view but the file list continue to display a '?'

https://en.wikipedia.org/wiki/Unix_time
http://www.onlineconversion.com/unix_time.htm

Ryu

@Ryux Ryux changed the title The dates before 1970 is not well displayed The dates before 1970 are not well displayed Nov 3, 2016
@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@skjnldsv skjnldsv added bug and removed enhancement labels Jun 12, 2019
@ghost ghost removed the stale Ticket or PR with no recent activity label Jun 12, 2019
@skjnldsv skjnldsv added 1. to develop Accepted and waiting to be taken care of stale Ticket or PR with no recent activity labels Jun 12, 2019
@ghost ghost removed the stale Ticket or PR with no recent activity label Jun 12, 2019
@szaimen
Copy link
Contributor

szaimen commented May 21, 2021

I'm closing this issue due to inactivity. If this is still happening please make sure to upgrade to the latest version. After that, feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug feature: filesystem
Projects
None yet
Development

No branches or pull requests

5 participants