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 problem with the description of snapshot #113

Open
khoi-thinh opened this issue Nov 27, 2015 · 6 comments
Open

The problem with the description of snapshot #113

khoi-thinh opened this issue Nov 27, 2015 · 6 comments

Comments

@khoi-thinh
Copy link

I tried a lot of times, but the description doesn't display the right date.
For example, today is 2015/11/27 but the description said vol-xxxxx 1448593501.
What does 1448593501 mean and can you tell me how to fix it please?

@khoi-thinh
Copy link
Author

Any ideas anyone?

@paulwakeford
Copy link

It's ctime - http://www.onlineconversion.com/unix_time.htm

On Friday, 27 November 2015, thinhduckhoi [email protected] wrote:

I tried a lot of times, but the description doesn't display the right date.
For example, today is 2015/11/27 but the description said vol-xxxxx
1448593501.
What does 1448593501 mean and can you tell me how to fix it please?


Reply to this email directly or view it on GitHub
#113.

@khoi-thinh
Copy link
Author

Thank you so much. I forgot about that unix time.

@davfox
Copy link

davfox commented Jan 5, 2016

I got this to work by changing the middle line below to the last line.

#sets date variable
#current_date=$(date -u)
current_date=$(date -u +"%d-%m-%Y-%H-%M-%S")

@khoi-thinh
Copy link
Author

Thank you so much for a help, It works like a charm! :D

@One-Note-Pony
Copy link

For anyone thinking of making the description date output more human-readable, keep in mind that the value for purge_after_fe is still in seconds-from-epoch, and the decision to purge is based on whether purge_after_fe < current_date, with both values being treated by the script as if they were ctime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants