Ah, OK I did not notice that you were usang API_ADDRecord and not just putting up an add recrd form.
try this
var text RefreshPage = URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();
If( [End Shift Summary]>0,"",URLRoot() & "db/" & [_DBID_TIMECLOCKS] &"?a=API_AddRecord" &"&apptoken=b7h5xqhbdtch8uv5fj29dunzfbe" &"&_fid_9=" & [Record ID#] &"&_fid_39=" & (Now())
& "&rdr=" & URLEncode($RefreshPage))------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.commark.shnier@gmail.com
------------------------------