# Max-age / min-age RFC3339 format rejected

**URL:** <https://forum.rclone.org/t/max-age-min-age-rfc3339-format-rejected/22204>\
**Category:** Suspected Bug\
**Created:** [February 10, 2021, 2:30am UTC](https://forum.rclone.org/t/max-age-min-age-rfc3339-format-rejected/22204 "2021-02-10T02:30:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tills](https://forum.rclone.org/user_avatar/forum.rclone.org/tills/32/8595_2.png) [@tills](https://forum.rclone.org/u/tills)\
**Post date:** [February 10, 2021, 2:30am UTC](https://forum.rclone.org/t/max-age-min-age-rfc3339-format-rejected/22204/1 "2021-02-10T02:30:09Z")

</div>

#### What is the problem you are having with rclone?

RFC3339 format not accepted in `--max-age` and `--min-age`

#### What is your rclone version (output from `rclone version`)

```auto
rclone v1.54.0
os/arch: linux/amd64
go version: go1.15.7

```

#### Which OS you are using and how many bits (eg Windows 7, 64 bit)

```auto
Red Hat Enterprise Linux Server release 7.9 (Maipo)
Architecture: x86-64

```

#### Which cloud storage system are you using? (eg Google Drive)

Dropbox

#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)

```auto
rclone ls -vv --exclude '.git/**' Dropbox:/Documents/ --max-age "2006-01-02T15:04:05Z07:00"

```

#### A log from the command with the `-vv` flag

```auto
2021/02/10 13:21:52 Fatal error: invalid argument "2006-01-02T15:04:05Z07:00" for "--max-age" flag: parsing time "2006-01-02T15:04:05Z07:00": extra text: "T15:04:05Z07:00"

```

---

<div class="post-metadata">

**Author:** ![x0b](https://forum.rclone.org/user_avatar/forum.rclone.org/x0b/32/4588_2.png) [@x0b](https://forum.rclone.org/u/x0b)\
**Post date:** [February 10, 2021, 10:52am UTC](https://forum.rclone.org/t/max-age-min-age-rfc3339-format-rejected/22204/2 "2021-02-10T10:52:02Z")

</div>

The example in the docs is wrong. `Z` is only used for UTC+0. Your timestamp should either be  
`2006-01-02T15:04:05Z` or `2006-01-02T15:04:05+07:00`.

---

<div class="post-metadata">

**Author:** ![Edward\_Barker](https://forum.rclone.org/user_avatar/forum.rclone.org/edward_barker/32/3779_2.png) [@Edward\_Barker](https://forum.rclone.org/u/Edward_Barker)\
**Post date:** [February 10, 2021, 11:25am UTC](https://forum.rclone.org/t/max-age-min-age-rfc3339-format-rejected/22204/3 "2021-02-10T11:25:06Z")

</div>

Submitted PR [https://github.com/rclone/rclone/pull/5013](https://github.com/rclone/rclone/pull/5013)  
to reflect correction from @x0b

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [February 13, 2021, 11:25am UTC](https://forum.rclone.org/t/max-age-min-age-rfc3339-format-rejected/22204/4 "2021-02-13T11:25:08Z")

</div>

Closed on February 13, 2021, 11:25am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
