From 67dcf4254d568b6a3a92b7aab218d744fdf64b90 Mon Sep 17 00:00:00 2001 From: Johannes Hillert Date: Sat, 12 Sep 2020 23:30:40 +0200 Subject: [PATCH] Fixed documentation as described in #1291 --- api/java/dates-and-times/time.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/java/dates-and-times/time.md b/api/java/dates-and-times/time.md index 86c942d12..05befdae3 100644 --- a/api/java/dates-and-times/time.md +++ b/api/java/dates-and-times/time.md @@ -29,13 +29,13 @@ A few restrictions exist on the arguments: - `minutes` is an integer. - `seconds` is a double. Its value will be rounded to three decimal places (millisecond-precision). -- `timezone` can be `'Z'` (for UTC) or a string with the format `±[hh]:[mm]`. +- `timezone` can be `"Z"` (for UTC) or a string with the format `±[hh]:[mm]`. __Example:__ Update the birthdate of the user "John" to November 3rd, 1986 UTC. ```java r.table("user").get("John").update( - r.hashMap("birthdate", r.time(1986, 11, 3, 'Z')) + r.hashMap("birthdate", r.time(1986, 11, 3, "Z")) ).run(conn); ```