A little more experimenting shows that changing *date*->seconds* to
*date->seconds* (no asterisk) in
(seconds->date
(+ (date*->seconds ts #f) (* timezone 60 60))
#f))
guarantees the time offset always is correct wrt the original UTC time.
So it seems that *(seconds->date (date*->seconds date #f) #f)* is not
always symmetric? *sql-timestamp->srfi-date* produces a *date** so I
thought I needed to use *date*->seconds*.
But I still have the problem that *sql-timestamp->srfi-date* isn't
always converting the SQL timestamp properly.
George
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.