2727 */
2828public class UtcTimeStampField extends Field <LocalDateTime > {
2929
30- private UtcTimestampPrecision precision = getDefaultUtcTimestampPrecision () ;
30+ private final UtcTimestampPrecision precision ;
3131
3232 public UtcTimeStampField (int field ) {
33- super (field , LocalDateTime . now ( ZoneOffset . UTC ));
33+ this (field , SystemTime . UTC . getNow ( ));
3434 }
3535
3636 protected UtcTimeStampField (int field , LocalDateTime data ) {
3737 super (field , data );
38+ this .precision = getDefaultUtcTimestampPrecision ();
3839 }
3940
4041 protected UtcTimeStampField (int field , LocalDateTime data , UtcTimestampPrecision precision ) {
@@ -43,18 +44,15 @@ protected UtcTimeStampField(int field, LocalDateTime data, UtcTimestampPrecision
4344 }
4445
4546 public UtcTimeStampField (int field , boolean includeMilliseconds ) {
46- super (field , LocalDateTime .now (ZoneOffset .UTC ));
47- this .precision = includeMilliseconds ? UtcTimestampPrecision .MILLIS : UtcTimestampPrecision .SECONDS ;
47+ this (field , includeMilliseconds ? UtcTimestampPrecision .MILLIS : UtcTimestampPrecision .SECONDS );
4848 }
4949
5050 public UtcTimeStampField (int field , UtcTimestampPrecision precision ) {
51- super (field , LocalDateTime .now (ZoneOffset .UTC ));
52- this .precision = precision ;
51+ this (field , SystemTime .UTC .getNow (), precision );
5352 }
5453
5554 protected UtcTimeStampField (int field , LocalDateTime data , boolean includeMilliseconds ) {
56- super (field , data );
57- this .precision = includeMilliseconds ? UtcTimestampPrecision .MILLIS : UtcTimestampPrecision .SECONDS ;
55+ this (field , data , includeMilliseconds ? UtcTimestampPrecision .MILLIS : UtcTimestampPrecision .SECONDS );
5856 }
5957
6058 public UtcTimestampPrecision getPrecision () {
0 commit comments